diff options
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 5572580..3175199 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -556,7 +556,7 @@ class FancyURLopener(URLopener): void = fp.read() fp.close() # In case the server sent a relative URL, join with original: - newurl = basejoin("http:" + url, newurl) + newurl = basejoin(self.type + ":" + url, newurl) if data is None: return self.open(newurl) else: |