Commit 70d5343c by dgrtwo

Changed to avoid adding master key if session token is active, in response to #98

parent cdb18bd6
......@@ -109,8 +109,7 @@ class ParseBase(object):
if ACCESS_KEYS.get('session_token'):
request.add_header('X-Parse-Session-Token', ACCESS_KEYS.get('session_token'))
if master_key and 'X-Parse-Session-Token' not in headers.keys():
elif master_key:
request.add_header('X-Parse-Master-Key', master_key)
request.get_method = lambda: http_verb
......
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