]> granicus.if.org Git - python/commit
Issue #1580738. When HTTPConnection reads the whole stream with read(),
authorFacundo Batista <facundobatista@gmail.com>
Thu, 18 Oct 2007 03:16:03 +0000 (03:16 +0000)
committerFacundo Batista <facundobatista@gmail.com>
Thu, 18 Oct 2007 03:16:03 +0000 (03:16 +0000)
commit7066590736bb61b5f67ade490aeee327af4bc6e2
tree4a98d6267b59eae611c7f0f116ea05b6fe368fc6
parenta1e42e11d51237a949ad2568f8a097d4b442fdec
Issue #1580738.  When HTTPConnection reads the whole stream with read(),
it closes itself.  When the stream is read in several calls to read(n),
it should behave in the same way if HTTPConnection knows where the end
of the stream is (through self.length).  Added a test case for this
behaviour.
Lib/httplib.py
Lib/test/test_httplib.py