[Patches] [ python-Patches-1095362 ] fixes urllib2 digest to allow arbitrary methods

SourceForge.net noreply at sourceforge.net
Tue Jan 4 00:46:18 CET 2005


Patches item #1095362, was opened at 2005-01-03 15:46
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1095362&group_id=5470

Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: John Reese (rrttjj)
Assigned to: Nobody/Anonymous (nobody)
Summary: fixes urllib2 digest to allow arbitrary methods

Initial Comment:
urllib2.AbstractDigestAuthHandler.get_authorization
always forced the method to be either 'GET' or 'HEAD'
when computing the digest.  This meant that digest auth
for any other method would fail automatically; for
example, DELETE or PUT, for any HTTP servers that
support them, or DAV verbs like PROPFIND.  This single
line change just calls Request.get_method instead of
hardcoding the defaulting logic.

Request.get_method still forces the method to be either
GET or HEAD, but a determined caller can override
Request if they need to use a different method.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1095362&group_id=5470


More information about the Patches mailing list