Commit 834c6193 by Matt Drayer

Fixed indentation error

parent 1ddea5dd
......@@ -39,10 +39,10 @@ class ApiKeyHeaderPermission(permissions.BasePermission):
if header_key is None:
try:
header_key = request.META['headers'].get('X-Edx-Api-Key')
if header_key is None:
return False
except KeyError:
return False
if header_key is None:
return False
# The api key values need to be the same
if header_key != api_key:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment