Commit message (Collapse) | Author | Age | ||
---|---|---|---|---|
... | ||||
* | | Issue #27895: Spelling fixes (Contributed by Ville Skyttä). | Raymond Hettinger | 2016-08-30 | |
| | | ||||
* | | Issue #12319: Always send file request bodies using chunked encoding | Martin Panter | 2016-08-27 | |
| | | | | | | | | | | | | | | 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. | |||
* | | Issue #12319: Support for chunked encoding of HTTP request bodies | Martin Panter | 2016-08-24 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | |||
* | | Merge typo fixes from 3.5 | Martin Panter | 2016-04-05 | |
|\| | ||||
| * | Fix typos in documentation and comments | Martin Panter | 2016-04-05 | |
| | | ||||
* | | Issue #26499: Merge HTTPResponse fix from 3.5 | Martin Panter | 2016-03-17 | |
|\| | ||||
| * | Issue #26499: Fixes to HTTPResponse.readline() and read1(), by Silent Ghost | Martin Panter | 2016-03-17 | |
| | | ||||
* | | Issue #26045: Merge http.client error addition from 3.5 | Martin Panter | 2016-02-09 | |
|\| | ||||
| * | Issue #26045: Add UTF-8 suggestion to error in http.client | Martin Panter | 2016-02-09 | |
| | | | | | | | | Based on patch by Guido van Rossum. | |||
* | | Issue #25899: Converted non-ASCII characters in docstrings and manpage | Serhiy Storchaka | 2015-12-18 | |
|\| | | | | | | | | | to ASCII replacements. Removed UTF-8 BOM from Misc/NEWS. Original patch by Chris Angelico. | |||
* | | Add in missing docstrings. | Raymond Hettinger | 2015-08-18 | |
|/ | ||||
* | Issue #23865: close() methods in multiple modules now are idempotent and more | Serhiy Storchaka | 2015-04-10 | |
|\ | | | | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured. | |||
| * | Issue #23865: close() methods in multiple modules now are idempotent and more | Serhiy Storchaka | 2015-04-10 | |
| | | | | | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured. | |||
* | | #3566: Clean up handling of remote server disconnects. | R David Murray | 2015-04-05 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset does two things: introduces a new RemoteDisconnected exception (that subclasses ConnectionResetError and BadStatusLine) so that a remote server disconnection can be detected by client code (and provides a better error message for debugging purposes), and ensures that the client socket is closed if a ConnectionError happens, so that the automatic re-connection code can work if the application handles the error and continues on. Tests are added that confirm that a connection is re-used or not re-used as appropriate to the various combinations of protocol version and headers. Patch by Martin Panter, reviewed by Demian Brecht. (Tweaked only slightly by me.) | |||
* | | Merge: #23539: Set Content-Length to 0 for PUT, POST, and PATCH if body is None. | R David Murray | 2015-03-22 | |
|\| | ||||
| * | #23539: Set Content-Length to 0 for PUT, POST, and PATCH if body is None. | R David Murray | 2015-03-22 | |
| | | | | | | | | | | | | | | | | Some http servers will reject PUT, POST, and PATCH requests if they do not have a Content-Length header. Patch by James Rutherford, with additional cleaning up of the 'request' documentation by me. | |||
* | | Issue #22928: Disabled HTTP header injections in http.client. | Serhiy Storchaka | 2015-03-12 | |
|\| | | | | | | | Original patch by Demian Brecht. | |||
| * | Issue #22928: Disabled HTTP header injections in http.client. | Serhiy Storchaka | 2015-03-12 | |
| | | | | | | | | Original patch by Demian Brecht. | |||
* | | Issue #23439: Add missing entries to http.client.__all__. | Berker Peksag | 2015-02-20 | |
|\| | | | | | | | | | | | | | Also, document the LineTooLong exception since it can be raised by the members of public API (e.g. http.client.HTTPResponse). Patch by Martin Panter. | |||
| * | Issue #23439: Add missing entries to http.client.__all__. | Berker Peksag | 2015-02-20 | |
| | | | | | | | | | | | | | | Also, document the LineTooLong exception since it can be raised by the members of public API (e.g. http.client.HTTPResponse). Patch by Martin Panter. | |||
* | | Issue #13128: Print response headers for CONNECT requests when debuglevel > 0. | Berker Peksag | 2015-02-03 | |
| | | | | | | | | Patch by Demian Brecht. | |||
* | | http.client: disable Nagle's algorithm (closes #23302) | Benjamin Peterson | 2015-01-23 | |
| | | | | | | | | Patch by Demian Brecht. | |||
* | | Issue #21793: Added http.HTTPStatus enums (i.e. HTTPStatus.OK, | Serhiy Storchaka | 2014-12-23 | |
| | | | | | | | | HTTPStatus.NOT_FOUND). Patch by Demian Brecht. | |||
* | | Issue #22095: Fixed HTTPConnection.set_tunnel with default port. The port | Serhiy Storchaka | 2014-12-12 | |
|\| | | | | | | | value in the host header was set to "None". Patch by Demian Brecht. | |||
| * | Issue #22095: Fixed HTTPConnection.set_tunnel with default port. The port | Serhiy Storchaka | 2014-12-12 | |
| | | | | | | | | value in the host header was set to "None". Patch by Demian Brecht. | |||
* | | merge 3.4 (#22959) | Benjamin Peterson | 2014-12-07 | |
|\| | ||||
| * | HTTPSConnection: prefer the context's check_hostname attribute over the ↵ | Benjamin Peterson | 2014-12-07 | |
| | | | | | | | | constructor parameter (#22959) | |||
* | | Issue #21032. Fixed socket leak if HTTPConnection.getresponse() fails. | Serhiy Storchaka | 2014-12-01 | |
|\| | | | | | | | Original patch by Martin Panter. | |||
| * | Issue #21032. Fixed socket leak if HTTPConnection.getresponse() fails. | Serhiy Storchaka | 2014-12-01 | |
| | | | | | | | | Original patch by Martin Panter. | |||
* | | merge 3.4 (#22921) | Benjamin Peterson | 2014-11-23 | |
|\| | ||||
| * | don't require OpenSSL SNI to pass hostname to ssl functions (#22921) | Benjamin Peterson | 2014-11-23 | |
| | | | | | | | | Patch by Donald Stufft. | |||
* | | merge 3.4 (#22417) | Benjamin Peterson | 2014-11-03 | |
|\| | ||||
| * | PEP 476: enable HTTPS certificate verification by default (#22417) | Benjamin Peterson | 2014-11-03 | |
| | | | | | | | | Patch by Alex Gaynor with some modifications by me. | |||
* | | Issue #22033: Reprs of most Python implemened classes now contain actual | Serhiy Storchaka | 2014-07-25 | |
| | | | | | | | | class name instead of hardcoded one. | |||
* | | merge from 3.4 | Senthil Kumaran | 2014-04-14 | |
|\| | | | | | | | | | Issue #7776: Fix ``Host:'' header and reconnection when using http.client.HTTPConnection.set_tunnel() Patch by Nikolaus Rath. | |||
| * | Issue #7776: Fix ``Host:'' header and reconnection when using ↵ | Senthil Kumaran | 2014-04-14 | |
| | | | | | | | | | | | | http.client.HTTPConnection.set_tunnel(). Patch by Nikolaus Rath. | |||
* | | (Merge 3.4) Issue #20976: pyflakes: Remove unused imports | Victor Stinner | 2014-03-20 | |
|\| | ||||
| * | Issue #20976: pyflakes: Remove unused imports | Victor Stinner | 2014-03-20 | |
| | | ||||
* | | Issue #19009 | Kristján Valur Jónsson | 2014-03-19 | |
|/ | | | | Enhance HTTPResponse.readline() performance | |||
* | Issue #20007: HTTPResponse.read(0) no more prematurely closes connection. | Serhiy Storchaka | 2013-12-17 | |
|\ | | | | | | | Original patch by Simon Sapin. | |||
| * | Issue #20007: HTTPResponse.read(0) no more prematurely closes connection. | Serhiy Storchaka | 2013-12-17 | |
| | | | | | | | | Original patch by Simon Sapin. | |||
* | | Issue 19509: Don't call match_hostname() twice in http.client. | Christian Heimes | 2013-12-05 | |
| | | ||||
* | | Issue #19735: Implement private function ssl._create_stdlib_context() to | Christian Heimes | 2013-11-23 | |
| | | | | | | | | | | create SSLContext objects in Python's stdlib module. It provides a single configuration point and makes use of SSLContext.load_default_certs(). | |||
* | | merge with 3.3 | Georg Brandl | 2013-10-27 | |
|\| | ||||
| * | Issue #16037: HTTPMessage.readheaders() raises an HTTPException when more than | Georg Brandl | 2013-10-27 | |
| | | | | | | | | 100 headers are read. Adapted from patch by Jyrki Pulliainen. | |||
* | | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) | Brett Cannon | 2013-07-04 | |
| | | ||||
* | | Issue #18200: Update the stdlib (except tests) to use | Brett Cannon | 2013-06-13 | |
| | | | | | | | | ModuleNotFoundError. | |||
* | | Issue #16658: add missing return to HTTPConnection.send(). | Andrew Svetlov | 2013-04-12 | |
|\| | | | | | | | Patch by Jeff Knupp | |||
| * | Issue #16658: add missing return to HTTPConnection.send(). | Andrew Svetlov | 2013-04-12 | |
| | | | | | | | | Patch by Jeff Knupp | |||
* | | #17460: Remove the strict argument of HTTPConnection and removing the | Senthil Kumaran | 2013-03-18 | |
| | | | | | | | | DeprecationWarning being issued from 3.2 onwards. |