]> granicus.if.org Git - python/commit
Issue #12319: Always send file request bodies using chunked encoding
authorMartin Panter <vadmium+py@gmail.com>
Sat, 27 Aug 2016 01:39:26 +0000 (01:39 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Sat, 27 Aug 2016 01:39:26 +0000 (01:39 +0000)
commitef91bb26604ddfae22aac56b3cfdaabf237db37a
tree491cbeadc0488a4e203de39ca42f8b132653195f
parent8f96a30630b5f6a984af3ee53c63bce3b16077e0
Issue #12319: Always send file request bodies using chunked encoding

The previous attempt to determine the file’s Content-Length gave a false
positive for pipes on Windows.

Also, drop the special case for sending zero-length iterable bodies.
Doc/library/http.client.rst
Doc/library/urllib.request.rst
Doc/whatsnew/3.6.rst
Lib/http/client.py
Lib/test/test_httplib.py
Lib/test/test_urllib2.py
Misc/NEWS