Skip to content

Commit

Permalink
better headers support
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jul 22, 2015
1 parent e734424 commit e1e35e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/quorum/httpc.py
Expand Up @@ -63,9 +63,10 @@
considered to be authentication related and for which a
new authentication try will be performed """

def try_auth(auth_callback, params):
def try_auth(auth_callback, params, headers = None):
if not auth_callback: raise
auth_callback(params)
if headers == None: headers = dict()
auth_callback(params, headers)

def get(url, auth_callback = None, **kwargs):
# starts the variable holding the number of
Expand Down

0 comments on commit e1e35e1

Please sign in to comment.