From daf845a6cde2a16f2eb8ec6aced66c91c6b1bd75 Mon Sep 17 00:00:00 2001 From: Sean Parsons Date: Mon, 26 Dec 2016 06:17:45 -0500 Subject: [PATCH] Removed None from dict.get because it's None by default. --- sanic/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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