commit | c295862ce04c6bf2b1d2ba5b8218f6198c62a241 | [log] [tgz] |
---|---|---|
author | Senthil Kumaran <orsenthil@gmail.com> | Mon Nov 22 04:48:26 2010 +0000 |
committer | Senthil Kumaran <orsenthil@gmail.com> | Mon Nov 22 04:48:26 2010 +0000 |
tree | ceaa20b7dc94b3ecf4ee5bc0446011e6d32ac8a6 | |
parent | 1e600dc01fa294deb05243378e7419df1b6750ba [diff] [blame] |
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.
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index f3fb7be..fe66a67 100644 --- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py
@@ -105,7 +105,7 @@ # check for SSL try: import ssl -except: +except ImportError: _have_ssl = False else: _have_ssl = True