[Python-checkins] python/dist/src/Lib urllib.py,1.135.6.6,1.135.6.7
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
Thu, 24 Apr 2003 22:36:51 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv24001
Modified Files:
Tag: release22-maint
urllib.py
Log Message:
Backport 1.157
SF Patch 549151: urllib2 POSTs on redirect
(contributed by John J Lee)
Index: urllib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib.py,v
retrieving revision 1.135.6.6
retrieving revision 1.135.6.7
diff -C2 -d -r1.135.6.6 -r1.135.6.7
*** urllib.py 24 Apr 2003 02:46:35 -0000 1.135.6.6
--- urllib.py 25 Apr 2003 05:36:48 -0000 1.135.6.7
***************
*** 582,585 ****
--- 582,589 ----
return self.http_error_302(url, fp, errcode, errmsg, headers, data)
+ def http_error_303(self, url, fp, errcode, errmsg, headers, data=None):
+ """Error 303 -- also relocated (essentially identical to 302)."""
+ return self.http_error_302(url, fp, errcode, errmsg, headers, data)
+
def http_error_401(self, url, fp, errcode, errmsg, headers, data=None):
"""Error 401 -- authentication required.