Fix Issue4493 - urllib2 adds '/' to the path component of url, when it does not

starts with one. This behavior is exhibited by browser and other clients.
This commit is contained in:
Senthil Kumaran 2010-11-22 04:48:26 +00:00
parent 1e600dc01f
commit c295862ce0
4 changed files with 29 additions and 2 deletions

View file

@ -105,7 +105,7 @@ from urllib.response import addinfourl, addclosehook
# check for SSL
try:
import ssl
except:
except ImportError:
_have_ssl = False
else:
_have_ssl = True