forked from benoitc/gunicorn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since the updated RFC 7230 implys that new Headers Key and Value should be sent as USASCII only don't try to test utf8 headers in examples. We now only encode them to ascii. Gunicorn will fail if it's unable to encode them letting the responsability to the application to correctly encode the response. (we are just a gateway). While i'm here simplify the code to not create an extra function only used at one place. NOTE: if anyone come to a better solution, i am happy to revisit it on the next release. fix benoitc#1151
- Loading branch information
Showing
3 changed files
with
4 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters