-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect handling of content negotiation header #1
Comments
The previous version webapp passed the following test-case, including the Accept header that Michel mentions above and other major browsers common headers: |
Issue fixed on http://beta.bio2rdf.org/ curl -i -H 'Accept: application/rdf+xml, application/xml; q=0.8, text/xml; q=0.7, application/rss+xml; q=0.3, /; q=0.2' http://beta.bio2rdf.org/hgnc_vocabulary:approved-name
The service will return result for those MIME types :
(the json-ld will come when the REST service will handle that) Let me know if you find some issues with this or if I can deploy it on bio2rdf.org ! |
Great! go ahead and deploy on bio2rdf.org |
Hi. We need to support other content-types: possible? |
I'll take a look when the datahub update will be done |
Standardising on application/n-triples (RDF-1.1 N-Triples) and application/trig (RDF-1.1 TriG) and application/n-quads (RDF-1.1 N-Quads) would also be useful if the underlying RDF library actually outputs them. |
We are using Jena library to generate the RDF in different formats |
It looks like whatever libraries are being used to handle the content-negotiation at the Bio2RDF end are not dealing with these complex (but valid!) request headers.
curl -H 'Accept: application/rdf+xml, application/xml; q=0.8, text/xml; q=0.7, application/rss+xml; q=0.3, /; q=0.2' --dump-header -http://bio2rdf.org/hgnc_vocabulary:approved-name
HTTP/1.1 404 Not Found
Date: Fri, 13 Jun 2014 08:02:39 GMT
Server: Jetty(8.1.12.v20130726)
Content-Length: 0
$ curl -H 'Accept: application/rdf+xml' --dump-header -http://bio2rdf.org/hgnc_vocabulary:approved-name
HTTP/1.1 200 OK
Date: Fri, 13 Jun 2014 08:03:11 GMT
Server: Jetty(8.1.12.v20130726)
Content-Type: application/rdf+xml
Content-Length: 1720
@vemonet
The text was updated successfully, but these errors were encountered: