diff options
author | Adam Groszer <agroszer@gmail.com> | 2013-08-15 12:19:06 +0200 |
---|---|---|
committer | Adam Groszer <agroszer@gmail.com> | 2013-08-15 15:37:11 +0200 |
commit | 5b4ca21f26bf52c54d53b3ed710fe0c41873e9ff (patch) | |
tree | c4b8ec3d795790d5e54f431645a96aff6b681edf /waitress/task.py | |
parent | 655591a473c245963665332dd7ebe875c2eca8d1 (diff) | |
download | waitress-5b4ca21f26bf52c54d53b3ed710fe0c41873e9ff.tar.gz |
Fix: CONNECTION header will be HTTP_CONNECTION and not CONNECTION_TYPE
(see https://github.com/Pylons/waitress/issues/13)
Diffstat (limited to 'waitress/task.py')
-rw-r--r-- | waitress/task.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/waitress/task.py b/waitress/task.py index e518b8a..1c420ca 100644 --- a/waitress/task.py +++ b/waitress/task.py @@ -31,10 +31,9 @@ from waitress.utilities import ( logger, ) -rename_headers = { +rename_headers = { # or keep them without the HTTP_ prefix added 'CONTENT_LENGTH': 'CONTENT_LENGTH', 'CONTENT_TYPE': 'CONTENT_TYPE', - 'CONNECTION': 'CONNECTION_TYPE', } hop_by_hop = frozenset(( |