add query data to digest path
authorKenneth Reitz <me@kennethreitz.com>
Mon, 7 Nov 2011 19:18:05 +0000 (14:18 -0500)
committerKenneth Reitz <me@kennethreitz.com>
Mon, 7 Nov 2011 19:18:05 +0000 (14:18 -0500)
requests/auth.py

index b87bfd0..aabeb86 100644 (file)
@@ -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)