We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/awslabs/chalice/blob/a8d68083e8e76f096307cdd992686b658e39f1a2/chalice/app.py#L144-L145
If you pass a unicode typed body variable to the Response object it json encodes the value.
from chalice import Chalice, Response app = Chalice(app_name='example') @app.route('/') def index(): body = u'<h1>test</h1>' return Response(body=body, status_code=200, headers={'Content-Type': 'text/html'})
<h1>test</h1>
"<h1>test</h1>"
It would make sense to check for str or unicode strings here
str
unicode
The text was updated successfully, but these errors were encountered:
Looks like this is still an issue. Although its worth noting that it is only an issue on python 2.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
https://github.com/awslabs/chalice/blob/a8d68083e8e76f096307cdd992686b658e39f1a2/chalice/app.py#L144-L145
If you pass a unicode typed body variable to the Response object it json encodes the value.
Steps to reproduce
Expected results
Actual results
Suggested change
It would make sense to check for
str
orunicode
strings hereThe text was updated successfully, but these errors were encountered: