diff -ur Python-2.7.2-old//Lib/urllib2.py Python-2.7.2-fixed//Lib/urllib2.py --- Python-2.7.2-old//Lib/urllib2.py 2011-06-11 17:46:26.000000000 +0200 +++ Python-2.7.2-fixed//Lib/urllib2.py 2012-02-26 16:13:44.000000000 +0100 @@ -574,7 +574,7 @@ # fix a possible malformed URL urlparts = urlparse.urlparse(newurl) - if not urlparts.path: + if not urlparts.path and urlparts.netloc: urlparts = list(urlparts) urlparts[2] = "/" newurl = urlparse.urlunparse(urlparts)