Removed None from dict.get because it's None by default.

This commit is contained in:
Sean Parsons 2016-12-26 06:17:45 -05:00
parent a4ed6a3923
commit daf845a6cd

View File

@ -79,7 +79,7 @@ class Request(dict):
Attempts to return the auth header token.
:return: token related to request
"""
auth_header = self.headers.get('Authorization', None)
auth_header = self.headers.get('Authorization')
if auth_header is not None:
return auth_header.split()[1]
return auth_header