| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
| |
The deprecation include manual creation of SSLSocket and certfile/keyfile
(or similar) in ftplib, httplib, imaplib, smtplib, poplib and urllib.
ssl.wrap_socket() is not marked as deprecated yet.
|
|
|
|
| |
but not in the expressions. Also, require expressions to begin and end with literal curly braces.
|
|\
| |
| |
| | |
documentation consistent with the code.
|
| |
| |
| |
| |
| |
| |
| | |
And most of the tools.
Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and
Martin Panter.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |\ |
|
| | |\ |
|
| | | |\ |
|
| | | |\ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
to ASCII replacements. Removed UTF-8 BOM from Misc/NEWS.
Original patch by Chris Angelico.
|
| | | |/ / |
|
| | | | |
| | | | |
| | | | |
| | | | | |
consistent with the code.
|
|/ / / / |
|
|/ / / |
|
| |/
|/| |
|
|/
|
|
| |
Based on patch by Guido van Rossum.
|
|\
| |
| |
| |
| | |
robust at shutdown. If needs to release multiple resources, they are released
even if errors are occured.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.)
|
| |\ |
|
| | |\
| | | |
| | | |
| | | | |
Original patch by Demian Brecht.
|
| | | |\
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| | | | |
| | | | |
| | | | |
| | | | | |
Patch by Demian Brecht.
|
| | | | |
| | | | |
| | | | |
| | | | | |
Patch by Demian Brecht.
|
| | | | |
| | | | |
| | | | |
| | | | | |
HTTPStatus.NOT_FOUND). Patch by Demian Brecht.
|
| | | |\ \
| | | | | |
| | | | | |
| | | | | | |
value in the host header was set to "None". Patch by Demian Brecht.
|
| | | | |\ \ |
|
| | | | | |\ \
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Original patch by Martin Panter.
|
| | | | | | |\ \ |
|
| | | | | | | |\ \ |
|
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | | |
class name instead of hardcoded one.
|
| | | | | | | |\ \ \
| | | | | | | | | | |
| | | | | | | | | | |
| | | | | | | | | | |
| | | | | | | | | | | |
Issue #7776: Fix ``Host:'' header and reconnection when using http.client.HTTPConnection.set_tunnel()
Patch by Nikolaus Rath.
|
| | | | | | | |\ \ \ \ |
|
| | | | | | | | | | | |
| | | | | | | | | | | |
| | | | | | | | | | | |
| | | | | | | | | | | | |
Enhance HTTPResponse.readline() performance
|
|/ / / / / / / / / / /
| | | | | | | | | | |
| | | | | | | | | | |
| | | | | | | | | | |
| | | | | | | | | | | |
robust at shutdown. If needs to release multiple resources, they are released
even if errors are occured.
|
|/ / / / / / / / / /
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | | |
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.
|
| |_|_|_|_|_|_|_|/
|/| | | | | | | |
| | | | | | | | |
| | | | | | | | | |
Original patch by Demian Brecht.
|
|/ / / / / / / /
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
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.
|
|/ / / / / / /
| | | | | | |
| | | | | | |
| | | | | | | |
value in the host header was set to "None". Patch by Demian Brecht.
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | | |
constructor parameter (#22959)
|
|/ / / / /
| | | | |
| | | | |
| | | | | |
Original patch by Martin Panter.
|
| |_|_|/
|/| | |
| | | |
| | | | |
Patch by Donald Stufft.
|
| |_|/
|/| |
| | |
| | | |
Patch by Alex Gaynor with some modifications by me.
|
|/ /
| |
| |
| |
| |
| | |
http.client.HTTPConnection.set_tunnel().
Patch by Nikolaus Rath.
|
|/ |
|
|\
| |
| |
| | |
Original patch by Simon Sapin.
|
| |
| |
| |
| | |
Original patch by Simon Sapin.
|