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

RSS Feed Content-Type should be "application/xml", but it is "text/html" #33

Open
gabstv opened this issue Nov 28, 2018 · 1 comment
Open

Comments

@gabstv
Copy link

gabstv commented Nov 28, 2018

Some rss feed readers won't accept the xml content if the response header outputs text/html:

GET https://golangnews.com/index.xml

HTTP/1.1 200
content-encoding: gzip
content-security-policy: frame-ancestors 'self'; style-src 'self'; script-src 'self' www.google-analytics.com
content-type: text/html; charset=utf-8
date: Wed, 28 Nov 2018 18:27:17 GMT
referrer-policy: strict-origin
status: 200
strict-transport-security: max-age=63072000; includeSubDomains; preload
vary: Accept-Encoding
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
@gabstv gabstv changed the title RSS Feed URL Content-Type should be "application/xhtml+xml", but it is "text/html" RSS Feed URL Content-Type should be "application/xml", but it is "text/html" Nov 28, 2018
@gabstv gabstv changed the title RSS Feed URL Content-Type should be "application/xml", but it is "text/html" RSS Feed Content-Type should be "application/xml", but it is "text/html" Nov 28, 2018
@pjebs
Copy link

pjebs commented Nov 6, 2020

how did you fix it?

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

No branches or pull requests

2 participants