Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

www.tei-c.org webserver serves XML files with wrong content-type #1584

Closed
Conal-Tuohy opened this issue Feb 15, 2017 · 2 comments
Closed

www.tei-c.org webserver serves XML files with wrong content-type #1584

Conal-Tuohy opened this issue Feb 15, 2017 · 2 comments

Comments

@Conal-Tuohy
Copy link

e.g. http://www.tei-c.org/release/xml/tei/odd/p5subset.xml is served as text/plain rather than application/xml, or even better, application/tei+xml as recommended by the Guidelines:

23.1 Serving TEI files with the TEI Media Type

In February 2011, the media type application/tei+xml was registered with IANA for ‘markup languages defined in accordance with the Text Encoding and Interchange guidelines’ (RFC 6129). We recommend that any XML file whose root element is in the TEI namespace be served with the media type application/tei+xml to enable and encourage automated recognition and processing of TEI files by external applications.

This has caused some minor problems for me with software which refuses to parse XML documents which claim to be plain text.

@raffazizzi
Copy link
Contributor

@Conal-Tuohy it is now served as text/xml. Does this solve the issue?
CURL output:

$ curl --head https://www.tei-c.org/release/xml/tei/odd/p5subset.xml
HTTP/2 200 
server: nginx/1.10.3
date: Thu, 30 Jan 2020 20:23:56 GMT
content-type: text/xml
content-length: 3830765
last-modified: Wed, 17 Jul 2019 03:45:24 GMT
etag: "5d2e99d4-3a73ed"
accept-ranges: bytes

@Conal-Tuohy
Copy link
Author

To be honest I have forgotten the actual problem I was having, so I can't be absolutely sure if this would fix it. But "text/xml" certainly should be OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants