Removed None from dict.get because it's None by default.
This commit is contained in:
parent
a4ed6a3923
commit
daf845a6cd
|
@ -79,7 +79,7 @@ class Request(dict):
|
||||||
Attempts to return the auth header token.
|
Attempts to return the auth header token.
|
||||||
:return: token related to request
|
:return: token related to request
|
||||||
"""
|
"""
|
||||||
auth_header = self.headers.get('Authorization', None)
|
auth_header = self.headers.get('Authorization')
|
||||||
if auth_header is not None:
|
if auth_header is not None:
|
||||||
return auth_header.split()[1]
|
return auth_header.split()[1]
|
||||||
return auth_header
|
return auth_header
|
||||||
|
|
Loading…
Reference in New Issue
Block a user