duraspace / pcdm

Portland Common Data Model
http://pcdm.org/models
Apache License 2.0
90 stars 11 forks source link

Published PCDM ontology doesn't return a Content-Type header #58

Closed acoburn closed 7 years ago

acoburn commented 7 years ago

For example (note the lack of content-type header in the second response):

$ curl -LI http://pcdm.org/models -H"Accept: application/rdf+xml"
HTTP/1.1 303 See Other
Date: Wed, 03 Aug 2016 18:34:31 GMT
Server: Apache
Location: http://pcdm.org/2015/09/28/models
Content-Type: text/html; charset=iso-8859-1

HTTP/1.1 200 OK
Date: Wed, 03 Aug 2016 18:34:31 GMT
Server: Apache
Last-Modified: Mon, 05 Oct 2015 13:55:27 GMT
ETag: "201c-5215bdda07511"
Accept-Ranges: bytes
Content-Length: 8220

Certain LDP clients may encounter difficulty with this. Perhaps @awoods would be so kind as to change the server settings so that Content-Type: application/rdf+xml is returned.

awoods commented 7 years ago

Done.

curl -IL -H"Accept: application/rdf+xml" pcdm.org/models
curl -IL -H"Accept: application/rdf+xml" pcdm.org/rights
curl -IL -H"Accept: application/rdf+xml" pcdm.org/use
curl -IL -H"Accept: application/rdf+xml" pcdm.org/file-format-types
curl -IL -H"Accept: application/rdf+xml" pcdm.org/works