diff options
author | Guido van Rossum <guido@python.org> | 2001-12-08 17:09:07 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-12-08 17:09:07 (GMT) |
commit | b931bf3c55613a58cf403f7e7b04a5c69cfd0763 (patch) | |
tree | b48fd887329194e5042e5ded3927c58083af593b /Lib/urllib.py | |
parent | 1f1e7270cf022fd822b47247bc6a0dfd7bda8870 (diff) | |
download | cpython-b931bf3c55613a58cf403f7e7b04a5c69cfd0763.zip cpython-b931bf3c55613a58cf403f7e7b04a5c69cfd0763.tar.gz cpython-b931bf3c55613a58cf403f7e7b04a5c69cfd0763.tar.bz2 |
SF patch #490515 (Joe A) urllib.open_https() protocol issue
open_http():
In urllib.py library module, URLopener.open_https()
returns a class instance of addinfourl() with its
self.url property missing the protocol.
Instead of "https://www.someurl.com", it becomes
"://www.someurl.com".
Diffstat (limited to 'Lib/urllib.py')
-rw-r--r-- | Lib/urllib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py index cdb2d0c..2f0f847 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -373,7 +373,7 @@ class URLopener: errcode, errmsg, headers = h.getreply() fp = h.getfile() if errcode == 200: - return addinfourl(fp, headers, url) + return addinfourl(fp, headers, "https:" + url) else: if data is None: return self.http_error(url, fp, errcode, errmsg, headers) |