Skip to content

Commit

Permalink
Do not remove AUTHORIZATION header
Browse files Browse the repository at this point in the history
This header should be removed only if basic auth handled by server.
  • Loading branch information
Sergey Skripnick committed Nov 28, 2015
1 parent 0e4f91e commit 5f305f0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .venv/lib64
1 change: 1 addition & 0 deletions .venv/pip-selfcheck.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"last_check":"2015-11-18T19:59:32Z","pypi_version":"7.1.2"}
3 changes: 3 additions & 0 deletions .venv/pyvenv.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
home = /usr/bin
include-system-site-packages = false
version = 3.4.3
4 changes: 1 addition & 3 deletions aiohttp/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5f305f0

Please sign in to comment.