[Python-checkins] CVS: python/dist/src/Lib urllib2.py,1.11,1.12

Moshe Zadka moshez@users.sourceforge.net
2001年4月11日 00:44:55 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv14812
Modified Files:
	urllib2.py 
Log Message:
Idiotic braino caused HTTP openers to ignore proxies.
This fixes 413135
Index: urllib2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib2.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** urllib2.py	2001年03月20日 13:14:28	1.11
--- urllib2.py	2001年04月11日 07:44:53	1.12
***************
*** 782,786 ****
 
 def do_open(self, http_class, req):
! host = urlparse.urlparse(req.get_full_url())[1]
 if not host:
 raise URLError('no host given')
--- 782,786 ----
 
 def do_open(self, http_class, req):
! host = req.get_host()
 if not host:
 raise URLError('no host given')

AltStyle によって変換されたページ (->オリジナル) /