]> granicus.if.org Git - python/commitdiff
Fix issue22245 - Fix urllib2_localnet test.
authorSenthil Kumaran <senthil@uthcode.com>
Fri, 22 Aug 2014 10:56:21 +0000 (16:26 +0530)
committerSenthil Kumaran <senthil@uthcode.com>
Fri, 22 Aug 2014 10:56:21 +0000 (16:26 +0530)
Do not aggresively close wfile in the do_GET method in the BasicAuthHandler.

Lib/test/test_urllib2_localnet.py

index 6d0f7e41d22af0c9280016b8f25e3f63b25c5519..d0a8a0f94fb4552a0140fb4bb3781e7518d2b955 100644 (file)
@@ -238,7 +238,6 @@ class BasicAuthHandler(http.server.BaseHTTPRequestHandler):
         else:
             # Request Unauthorized
             self.do_AUTHHEAD()
-        self.wfile.close()