summaryrefslogtreecommitdiff
path: root/waitress/task.py
diff options
context:
space:
mode:
authorAdam Groszer <agroszer@gmail.com>2013-08-15 12:19:06 +0200
committerAdam Groszer <agroszer@gmail.com>2013-08-15 15:37:11 +0200
commit5b4ca21f26bf52c54d53b3ed710fe0c41873e9ff (patch)
treec4b8ec3d795790d5e54f431645a96aff6b681edf /waitress/task.py
parent655591a473c245963665332dd7ebe875c2eca8d1 (diff)
downloadwaitress-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.py3
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((