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

Fix duplicated charset in the content-type header #20

Merged
merged 2 commits into from
Mar 17, 2021
Merged

Fix duplicated charset in the content-type header #20

merged 2 commits into from
Mar 17, 2021

Conversation

denysxftr
Copy link
Contributor

The CONTENT_TYPE_LATEST constant from the prometheus_client already contains not only media type but also charset value. On the other hand, starlette adds charset value to a value passed as media_type (related place in code).

This causes charset value duplication like: text/plain; version=0.0.4; charset=utf-8; charset=utf-8.

@perdy perdy merged commit aa617b2 into perdy:master Mar 17, 2021
@perdy
Copy link
Owner

perdy commented Aug 31, 2021

🎉 This PR is included in version 0.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@perdy perdy added the released label Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants