Commit 6d31d584 by David Robinson

Merge pull request #20 from joucle/enhancement

Add master key header only if no user session is specified
parents 2f6bfd20 fba36a5f
......@@ -78,7 +78,8 @@ class ParseBase(object):
request.add_header('X-Parse-Application-Id', app_id)
request.add_header('X-Parse-REST-API-Key', rest_key)
if master_key: request.add_header('X-Parse-Master-Key', master_key)
if master_key and 'X-Parse-Session-Token' not in headers.keys():
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