diff options
-rw-r--r-- | Lib/urllib.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py index c3da7bf..9ccf9c5 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -451,6 +451,8 @@ class FancyURLopener(URLopener): return void = fp.read() fp.close() + # In case the server sent a relative URL, join with original: + newurl = basejoin("http:" + url, newurl) return self.open(newurl, data) # Error 301 -- also relocated (permanently) |