Remove None from dict.get(key, None) (#33794)
This commit is contained in:
1 parent
d54ee77375
commit
46bbe816f6
45 files changed
+104
-110
No files matched your search
@@ -335,7 +335,7 @@ class HTML5PushCallbackView(HomeAssistantView):
|
||||
def check_authorization_header(self, request):
|
||||
"""Check the authorization header."""
|
||||
|
||||
auth = request.headers.get(AUTHORIZATION, None)
|
||||
auth = request.headers.get(AUTHORIZATION)
|
||||
if not auth:
|
||||
return self.json_message(
|
||||
"Authorization header is expected", status_code=HTTP_UNAUTHORIZED
|
||||
|
||||
Reference in new issue
Block a user