diff --git a/sanic/request.py b/sanic/request.py index fd52ba90..6bc4427d 100644 --- a/sanic/request.py +++ b/sanic/request.py @@ -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