Skip to content

Incorrect handling of content negotiation header #1

@micheldumontier

Description

@micheldumontier

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions