0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 11:15:56 +01:00

Patch #1095362: replace hardcoded test for POST/GET with call to get_method,

removing some duplication and gaining some flexibility in the process.
This commit is contained in:
Johannes Gijsbers 2005-01-09 05:51:49 +00:00
parent 2abe785fee
commit cdd625a770

View File

@ -859,7 +859,7 @@ class AbstractDigestAuthHandler:
entdig = None
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
req.get_selector())
if qop == 'auth':