Kaydet (Commit) f1cea6a6 authored tarafından Johannes Gijsbers's avatar Johannes Gijsbers

Backport patch #1095362: replace hardcoded test for POST/GET with call to

get_method, removing some duplication and gaining some flexibility in the
process.
üst af8d7a91
...@@ -856,7 +856,7 @@ class AbstractDigestAuthHandler: ...@@ -856,7 +856,7 @@ class AbstractDigestAuthHandler:
entdig = None entdig = None
A1 = "%s:%s:%s" % (user, realm, pw) A1 = "%s:%s:%s" % (user, realm, pw)
A2 = "%s:%s" % (req.has_data() and 'POST' or 'GET', A2 = "%s:%s" % (req.get_method(),
# XXX selector: what about proxies and full urls # XXX selector: what about proxies and full urls
req.get_selector()) req.get_selector())
if qop == 'auth': if qop == 'auth':
......
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