projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ce305f
)
add query data to digest path
author
Kenneth Reitz
<me@kennethreitz.com>
Mon, 7 Nov 2011 19:18:05 +0000
(14:18 -0500)
committer
Kenneth Reitz
<me@kennethreitz.com>
Mon, 7 Nov 2011 19:18:05 +0000
(14:18 -0500)
requests/auth.py
patch
|
blob
|
history
diff --git
a/requests/auth.py
b/requests/auth.py
index
b87bfd0
..
aabeb86
100644
(file)
--- a/
requests/auth.py
+++ b/
requests/auth.py
@@
-67,7
+67,8
@@
def http_digest(r, username, password):
# XXX not implemented yet
entdig = None
- path = urlparse(r.request.url).path
+ p_parsed = urlparse(r.request.url)
+ path = p_parsed.path + p_parsed.query
A1 = "%s:%s:%s" % (username, realm, password)
A2 = "%s:%s" % (r.request.method, path)