[ckan-dev] CKAN is mis-handling Accept header
Timothy Lebo
lebot at rpi.edu
Mon May 21 18:21:52 UTC 2012
CKAN,
It appears as though CKAN does not handle Accept headers correctly.
The following returns HTML:
curl -H "Accept: text/turtle,application/turtle,application/rdf+xml;q=0.8,text/plain;q=0.9,*/*;q=.5" http://thedatahub.org/dataset/farmers-markets-geographic-data-united-states
while we "know" CKAN "has" RDF/XML, since it returns it with this request:
curl -H "Accept: application/rdf+xml" http://thedatahub.org/dataset/farmers-markets-geographic-data-united-states
It is my impression that the first Accept header should lead to an RDF/XML representation instead of an HTML representation.
Is that correct?
Thanks,
Tim Lebo
More information about the ckan-dev
mailing list