Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix bug in HTTP-digest auth w/ URI having query string

  • Loading branch information...
commit 79f5d532c6a9ffcbb32b8cfcae8ec542c2699ff1 1 parent 6af6a08
Tom Moertel authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 requests/auth.py
View
4 requests/auth.py
@@ -86,7 +86,9 @@ def handle_401(self, r):
# XXX not implemented yet
entdig = None
p_parsed = urlparse(r.request.url)
- path = p_parsed.path + p_parsed.query
+ path = p_parsed.path
+ if p_parsed.query:
+ path += '?' + p_parsed.query
A1 = '%s:%s:%s' % (self.username, realm, self.password)
A2 = '%s:%s' % (r.request.method, path)
Please sign in to comment.
Something went wrong with that request. Please try again.