kennygrant / gohackernews

Golang News - curated links about the Go programming language
https://golangnews.com
MIT License
282 stars 42 forks source link

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

Open gabstv opened 5 years ago

gabstv commented 5 years ago

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
pjebs commented 3 years ago

how did you fix it?