fix typo and test_urllib failures

This commit is contained in:
Benjamin Peterson 2009-02-07 22:55:24 +00:00
parent 8a68122e9c
commit ded0c033c2
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ class HTTPResponse:
# applies to HTTP/1.1 connections.) This will happen if a self.fp.read()
# is done (without a size) whether self.fp is buffered or not.
# So, no self.fp.read() by clients unless they know what they are doing.
self.fp = sock.makefile("rb")
self.fp = sock.makefile(sock, "rb")
self.debuglevel = debuglevel
self.strict = strict
self._method = method