Index: Lib/httplib.py =================================================================== --- Lib/httplib.py (revisiĆ³n: 58443) +++ Lib/httplib.py (copia de trabajo) @@ -530,7 +530,8 @@ s = self.fp.read(amt) if self.length is not None: self.length -= len(s) - + if not self.length: + self.close() return s def _read_chunked(self, amt):