hbz / lobid

Linking Open Bibliographic Data
https://lobid.org/
Eclipse Public License 2.0
16 stars 4 forks source link

Wrong RDF Content-type #103

Closed nichtich closed 9 years ago

nichtich commented 9 years ago

RDF/Turtle and RDF/XML are returned as text/plain:

curl -i -H 'Accept: text/turtle,application/turtle,application/x-turtle' http://lobid.org/organisation/DE-605/about
HTTP/1.1 200 OK
Date: Mon, 15 Dec 2014 09:02:53 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 2978

<http://lobid.org/organisation/DE-605>
      a       <http://xmlns.com/foaf/0.1/Organization> ;
...
curl -i -H 'Accept: application/rdf+xml,application/xml,text/xml' http://lobid.org/organisation/DE-605/a
bout

HTTP/1.1 200 OK
Date: Mon, 15 Dec 2014 09:07:32 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 3113

<rdf:RDF
...
dr0i commented 9 years ago

Deployed to staging.

acka47 commented 9 years ago

+1. Works for /organisation, /resource and /subject.

dr0i commented 9 years ago

Deployed to production. Thx @nichtich for the bug report.