From 5f305f08215dc62181d0051570222970b7e20811 Mon Sep 17 00:00:00 2001 From: Sergey Skripnick Date: Sat, 28 Nov 2015 14:31:13 +0200 Subject: [PATCH] Do not remove AUTHORIZATION header This header should be removed only if basic auth handled by server. --- .venv/lib64 | 1 + .venv/pip-selfcheck.json | 1 + .venv/pyvenv.cfg | 3 +++ aiohttp/wsgi.py | 4 +--- 4 files changed, 6 insertions(+), 3 deletions(-) create mode 120000 .venv/lib64 create mode 100644 .venv/pip-selfcheck.json create mode 100644 .venv/pyvenv.cfg diff --git a/.venv/lib64 b/.venv/lib64 new file mode 120000 index 00000000000..7951405f85a --- /dev/null +++ b/.venv/lib64 @@ -0,0 +1 @@ +lib \ No newline at end of file diff --git a/.venv/pip-selfcheck.json b/.venv/pip-selfcheck.json new file mode 100644 index 00000000000..d0fe1b9ae39 --- /dev/null +++ b/.venv/pip-selfcheck.json @@ -0,0 +1 @@ +{"last_check":"2015-11-18T19:59:32Z","pypi_version":"7.1.2"} \ No newline at end of file diff --git a/.venv/pyvenv.cfg b/.venv/pyvenv.cfg new file mode 100644 index 00000000000..842bbc1c5bb --- /dev/null +++ b/.venv/pyvenv.cfg @@ -0,0 +1,3 @@ +home = /usr/bin +include-system-site-packages = false +version = 3.4.3 diff --git a/aiohttp/wsgi.py b/aiohttp/wsgi.py index 7f172d32fac..841ce14dc73 100644 --- a/aiohttp/wsgi.py +++ b/aiohttp/wsgi.py @@ -66,9 +66,7 @@ def create_wsgi_environ(self, message, payload): script_name = self.SCRIPT_NAME for hdr_name, hdr_value in message.headers.items(): - if hdr_name == 'AUTHORIZATION': - continue - elif hdr_name == 'SCRIPT_NAME': + if hdr_name == 'SCRIPT_NAME': script_name = hdr_value elif hdr_name == 'CONTENT-TYPE': environ['CONTENT_TYPE'] = hdr_value