[ckan-dev] CKAN is mis-handling Accept header

Mark Wainwright mark.wainwright at okfn.org
Tue May 22 10:49:45 UTC 2012


Hi Tim,

Yes, that seems to be the wrong behaviour. I've created a ticket for
it (http://trac.ckan.org/ticket/2409).

Mark


On 21 May 2012 19:21, Timothy Lebo <lebot at rpi.edu> wrote:
> 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
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev



-- 
Mark Wainwright, CKAN Community Co-ordinator
Open Knowledge Foundation http://okfn.org/
Skype: m.wainwright




More information about the ckan-dev mailing list