diff -r 81b5268efff6 Lib/urllib/request.py --- a/Lib/urllib/request.py Tue Nov 25 18:05:40 2014 -0600 +++ b/Lib/urllib/request.py Wed Nov 26 10:15:43 2014 +0000 @@ -1808,7 +1808,7 @@ # According to RFC 2616, "2xx" code indicates that the client's # request was successfully received, understood, and accepted. if 200 <= response.status < 300: - return addinfourl(response, response.msg, "http:" + url, + return addinfourl(response, response.msg, self.type + ":" + url, response.status) else: return self.http_error(