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

add content_type for basic example response body to decode utf-8 correctly #586

Merged

Conversation

nbawzl2004
Copy link
Contributor

The code for service "/async-body/{name}" will not render non ascii input correctly, because the HTTP response header is not set to use charset UTF-8.

Test on localhost:
Before:
Screenshot 2022-11-21 at 9 45 14 PM

After:
Screenshot 2022-11-21 at 9 44 08 PM

@JohnTitor JohnTitor enabled auto-merge (squash) November 21, 2022 14:35
@JohnTitor JohnTitor merged commit 32022a5 into actix:master Nov 21, 2022
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.

3 participants