Index: Lib/httplib.py =================================================================== --- Lib/httplib.py (revision 62215) +++ Lib/httplib.py (working copy) @@ -320,8 +320,8 @@ # See RFC 2616 sec 19.6 and RFC 1945 sec 6 for details. - def __init__(self, sock, debuglevel=0, strict=0, method=None): - self.fp = sock.makefile('rb', 0) + def __init__(self, sock, debuglevel=0, strict=0, method=None, sockbuf=0): + self.fp = sock.makefile('rb', sockbuf) self.debuglevel = debuglevel self.strict = strict self._method = method