[Python-checkins] CVS: python/dist/src/Lib urllib.py,1.134,1.135
Guido van Rossum
gvanrossum@users.sourceforge.net
Sat, 08 Dec 2001 09:09:09 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv5216
Modified Files:
urllib.py
Log Message:
SF patch #490515 (Joe A) urllib.open_https() protocol issue
open_http():
In urllib.py library module, URLopener.open_https()
returns a class instance of addinfourl() with its
self.url property missing the protocol.
Instead of "https://www.someurl.com", it becomes
"://www.someurl.com".
Index: urllib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib.py,v
retrieving revision 1.134
retrieving revision 1.135
diff -C2 -d -r1.134 -r1.135
*** urllib.py 2001/10/13 18:37:07 1.134
--- urllib.py 2001/12/08 17:09:07 1.135
***************
*** 374,378 ****
fp = h.getfile()
if errcode == 200:
! return addinfourl(fp, headers, url)
else:
if data is None:
--- 374,378 ----
fp = h.getfile()
if errcode == 200:
! return addinfourl(fp, headers, "https:" + url)
else:
if data is None: