Commit e3777b4e authored by Georg Brandl's avatar Georg Brandl

Fix merge glitch that let test_urllib fail.

parent 95ba4696
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment