<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/httplib.py, branch v2.3.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/httplib.py?h=v2.3.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/httplib.py?h=v2.3.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-06-29T17:55:05Z</updated>
<entry>
<title>Fix sf bug 666219: assertion error in httplib.</title>
<updated>2003-06-29T17:55:05Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2003-06-29T17:55:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b67695238d3ce6c40dacb05b155f24716af0c982'/>
<id>urn:sha1:b67695238d3ce6c40dacb05b155f24716af0c982</id>
<content type='text'>
The obvious way for this assertion to fail is if the LineAndFileWrapper constructor is called when an empty line.  Raise a BadStatusError before the call.
</content>
</entry>
<entry>
<title>Deal with a couple XXX comments which asked questions.</title>
<updated>2003-06-24T06:35:19Z</updated>
<author>
<name>Greg Stein</name>
<email>gstein@lyra.org</email>
</author>
<published>2003-06-24T06:35:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=616a58d79af2ae34430548156cfa7b44c55c700a'/>
<id>urn:sha1:616a58d79af2ae34430548156cfa7b44c55c700a</id>
<content type='text'>
In response to "shouldn't the client close the file?", the answer is
"no". The original design behind HTTPConnection is that the client did
not have to worry about it. The response would close itself when you
read the last of the data from it. This closing also dealt with
allowing the connection to perform another request/response (if it was
a persistent connection).

However... the auto-close behavior broke compatibility with the
classic httplib.HTTP class' behavior when a zero-length response body
was present. In that situation, the HTTPResponse object was
auto-closing it since there was no data present, and for an HTTP/1.0
connection-close socket (or an HTTP/0.9 request) connection, that also
ended up closing the socket. When an httplib.HTTP user went to read
the socket... boom. A patch to correct the auto-close (for compat with
old httplib users) was added in rev 1.22.

But for non-zero-length *chunked* bodies, we should keep the
auto-close behavior. The library user is not reading the socket (they
can't cuz of the chunked response we just got done handling), so they
should be immune to the response closing the socket. In fact, I would
like to see (one day) the auto-close restored, and the HTTP subclass
would simply have a flag to disable that behavior (for back-compat
purposes).
</content>
</entry>
<entry>
<title>Always unwrap _socketobj in socket.ssl. Revert httplib.py 1.25.</title>
<updated>2003-06-14T13:30:53Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2003-06-14T13:30:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1867f244168b0f809c4b8796e374e68c21ba880f'/>
<id>urn:sha1:1867f244168b0f809c4b8796e374e68c21ba880f</id>
<content type='text'>
Fixes #754447.
</content>
</entry>
<entry>
<title>Whitespace normalization.</title>
<updated>2003-05-12T20:19:37Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-05-12T20:19:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c2659cff5d88b81b6d9cc739ecc457a9ed357c58'/>
<id>urn:sha1:c2659cff5d88b81b6d9cc739ecc457a9ed357c58</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF bug 622042: Don't expect response body from HEAD request.</title>
<updated>2003-05-05T16:13:58Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2003-05-05T16:13:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c1b2cb9d8f70ed3a1209f53eae38f69be8248fcb'/>
<id>urn:sha1:c1b2cb9d8f70ed3a1209f53eae38f69be8248fcb</id>
<content type='text'>
Bug fix candidate.
</content>
</entry>
<entry>
<title>Implement IDNA (Internationalized Domain Names in Applications).</title>
<updated>2003-04-18T10:39:54Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2003-04-18T10:39:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2548c730c17d766ca04b2bf633552655f7f96cdf'/>
<id>urn:sha1:2548c730c17d766ca04b2bf633552655f7f96cdf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reverted the previous change to read() and readline().</title>
<updated>2003-03-06T16:31:48Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-03-06T16:31:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4922768d02b1117f71d4440da4d57da487f26d54'/>
<id>urn:sha1:4922768d02b1117f71d4440da4d57da487f26d54</id>
<content type='text'>
Kevin Jacobs found that the code simplification did not
exactly match the semantics of the original.  Regression
test cases were requested.
</content>
</entry>
<entry>
<title>Module review:</title>
<updated>2003-02-26T22:45:18Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-02-26T22:45:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b2e0b92ef16b0a4752fa32822af986486439b80f'/>
<id>urn:sha1:b2e0b92ef16b0a4752fa32822af986486439b80f</id>
<content type='text'>
* Replaced "while 1" with "while True"
* Rewrote read() and readline() for clarity and speed.
* Replaced variable 'list' with 'hlist'
* Used augmented assignment in two places.
</content>
</entry>
<entry>
<title>typo</title>
<updated>2003-02-25T17:48:15Z</updated>
<author>
<name>Skip Montanaro</name>
<email>skip@pobox.com</email>
</author>
<published>2003-02-25T17:48:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=74b9a7a71f6da74da872198dcb226ec1e7fbe966'/>
<id>urn:sha1:74b9a7a71f6da74da872198dcb226ec1e7fbe966</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Whitespace normalization.</title>
<updated>2002-11-24T02:35:35Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-11-24T02:35:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=77c06fbf942bf4c532d0f8d6f254882a9e5957ec'/>
<id>urn:sha1:77c06fbf942bf4c532d0f8d6f254882a9e5957ec</id>
<content type='text'>
</content>
</entry>
</feed>
