cpython/Doc/whatsnew
Martin Panter 3c0d0baf2b Issue #12319: Support for chunked encoding of HTTP request bodies
When the body object is a file, its size is no longer determined with
fstat(), since that can report the wrong result (e.g. reading from a pipe).
Instead, determine the size using seek(), or fall back to chunked encoding
for unseekable files.

Also, change the logic for detecting text files to check for TextIOBase
inheritance, rather than inspecting the “mode” attribute, which may not
exist (e.g. BytesIO and StringIO).  The Content-Length for text files is no
longer determined ahead of time, because the original logic could have been
wrong depending on the codec and newline translation settings.

Patch by Demian Brecht and Rolf Krahl, with a few tweaks by me.
2016-08-24 06:33:33 +00:00
..
2.0.rst Fix typos and English grammar in documentation and code comment 2016-06-12 06:14:03 +00:00
2.1.rst Issue #24314: Merge doc links from 3.5 2016-06-18 08:20:22 +00:00
2.2.rst Issue #24314: Fix doc links for general attributes like __name__, __dict__ 2016-06-18 03:57:31 +00:00
2.3.rst Issue #26462: Doc: reduce literal_block warnings, fix syntax highlighting. 2016-07-26 11:18:21 +02:00
2.4.rst Issue #26462: Doc: reduce literal_block warnings, fix syntax highlighting. 2016-07-26 11:18:21 +02:00
2.5.rst Issue #26736: Used HTTPS for external links in the documentation if possible. 2016-05-07 10:49:07 +03:00
2.6.rst Issue #27125: Fix various errors like “will [be] inherited” 2016-05-29 04:13:35 +00:00
2.7.rst Minor spelling fixes 2016-08-20 08:03:06 +00:00
3.0.rst Issue #26462: Doc: reduce literal_block warnings, fix syntax highlighting. 2016-07-26 11:18:21 +02:00
3.1.rst Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
3.2.rst Issue #27207: Fix doctests in Doc/whatsnew/3.2.rst 2016-08-10 00:30:41 -05:00
3.3.rst Issue #26462: Merge code block fixes from 3.5 2016-07-29 01:49:37 +00:00
3.4.rst Issue #27285: Cleanup "suspicious" warnings. 2016-07-11 14:21:58 -04:00
3.5.rst Issue #26462: Doc: reduce literal_block warnings, fix syntax highlighting. 2016-07-26 11:18:21 +02:00
3.6.rst Issue #12319: Support for chunked encoding of HTTP request bodies 2016-08-24 06:33:33 +00:00
changelog.rst
index.rst