Code Review
/
pti
/
o2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Improve the ssl connection handle log message.
[pti/o2.git]
/
o2common
/
authmw
/
authmiddleware.py
diff --git
a/o2common/authmw/authmiddleware.py
b/o2common/authmw/authmiddleware.py
index
13be910
..
032e735
100644
(file)
--- a/
o2common/authmw/authmiddleware.py
+++ b/
o2common/authmw/authmiddleware.py
@@
-61,8
+61,7
@@
class authmiddleware():
logger.info(__name__ + 'authentication middleware')
req = Request(environ, populate_request=True, shallow=True)
try:
logger.info(__name__ + 'authentication middleware')
req = Request(environ, populate_request=True, shallow=True)
try:
- auth_header = req.headers['Authorization']
-
+ auth_header = req.headers.get('Authorization', None)
if auth_header:
auth_token = auth_header.split(" ")[1]
if auth_header:
auth_token = auth_header.split(" ")[1]