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

Allow .xml suffix and set correct Content-Type header #5

Merged
merged 3 commits into from
Sep 8, 2020

Conversation

jmerle
Copy link
Contributor

@jmerle jmerle commented Aug 28, 2020

This PR adds a fix for zealdocs/zeal#1240 to this repository. In the current Zeal release all feed urls are assumed to have a .xml suffix, which this PR adds support for. Although it is nice that this assumption in Zeal will go away in the 0.7.0 release, at the moment it is impossible to use this project with the latest release of Zeal.

Besides that this PR sets the correct Content-Type header on API responses which return XML, so that browsers print the XML in a nicer way when manually going to any of those API endpoints.

@vercel
Copy link

vercel bot commented Aug 28, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/xantiagoma/zealusercontributions/5m4pq4vgp
✅ Preview: https://zealusercontributions-git-fork-jmerle-feature-xml.xantiagoma.vercel.app

@jmerle
Copy link
Contributor Author

jmerle commented Aug 28, 2020

@xantiagoma xantiagoma merged commit cc80a8d into xantiagoma:dev Sep 8, 2020
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

Successfully merging this pull request may close these issues.

2 participants