diff options
author | Johannes Gijsbers <jlg@dds.nl> | 2005-01-09 05:51:49 +0000 |
---|---|---|
committer | Johannes Gijsbers <jlg@dds.nl> | 2005-01-09 05:51:49 +0000 |
commit | cdd625a77067e226a5dc715d1892f9511a067391 (patch) | |
tree | c7fb03ff0ee7b830d416e57b8236219fbf52aa16 /Lib/urllib2.py | |
parent | 2abe785fee0839a51c83d6f2285e6ed8ade89c3a (diff) | |
download | cpython-git-cdd625a77067e226a5dc715d1892f9511a067391.tar.gz |
Patch #1095362: replace hardcoded test for POST/GET with call to get_method,
removing some duplication and gaining some flexibility in the process.
Diffstat (limited to 'Lib/urllib2.py')
-rw-r--r-- | Lib/urllib2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 5443d0b49f..a4046d30c2 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -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': |