]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix merge glitch that let test_urllib fail.
authorGeorg Brandl <georg@python.org>
Sat, 26 Jan 2008 11:23:13 +0000 (11:23 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 26 Jan 2008 11:23:13 +0000 (11:23 +0000)
Lib/urllib.py

index f9c8ec0c14dc2ca0119cffbcb249c23468034434..0b66e59143882faac2439607cc4da207db1c7b89 100644 (file)
@@ -360,7 +360,8 @@ class URLopener:
         # 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.fp, response.msg, "http:" + url)
+            return addinfourl(response.fp, response.msg, "http:" + url,
+                              response.status)
         else:
             return self.http_error(
                 url, response.fp,