| 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.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| |/
| |
| |
| |
| |
| | |
Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which
indicates that the script is in CGI mode.
Issue #27568 Reported and patch contributed by Rémi Rampin.
|
| |\
| | |
| | |
| | |
| | |
| | |
| | | |
Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which
indicates that the script is in CGI mode.
Issue #27568 Reported and patch contributed by Rémi Rampin.
|
| | |\
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which
indicates that the script is in CGI mode.
Issue #27568 Reported and patch contributed by Rémi Rampin.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which
indicates that the script is in CGI mode.
Issue #27568 Reported and patch contributed by Rémi Rampin.
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Clarifies what is returned when and that the methods are common between the two.
Patch by Alexander Liu as part of #22797.
|
|\ \ \ \
| |/ / / |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Some servers send Location header fields with non-ASCII bytes, but "http.
client" requires the request target to be ASCII-encodable, otherwise a
UnicodeEncodeError is raised. Based on patch by Christian Heimes.
Python 2 does not suffer any problem because it allows non-ASCII bytes in the
HTTP request target.
|
| | | | |
|
|\ \ \ \
| |/ / /
| | | |
| | | |
| | | |
| | | | |
Issue #26892: Honor debuglevel flag in urllib.request.HTTPHandler.
Patch contributed by Chi Hsuan Yen.
|
| | | |
| | | |
| | | |
| | | | |
Patch contributed by Chi Hsuan Yen.
|
|\ \ \ \
| |/ / / |
|
| | | | |
|
|\ \ \ \
| |/ / / |
|
| | | |
| | | |
| | | |
| | | | |
Patch by Xiang Zhang.
|
|\ \ \ \
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | | |
Issue #26804: urllib.request will prefer lower_case proxy environment variables
over UPPER_CASE or Mixed_Case ones.
Patch contributed by Hans-Peter Jansen. Reviewed by Martin Panter and Senthil Kumaran.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
over UPPER_CASE or Mixed_Case ones.
Patch contributed by Hans-Peter Jansen. Reviewed by Martin Panter and Senthil Kumaran.
|
|\ \ \ \
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
AbstractDigestAuthHandler.get_algorithm_impls
Raise ValueError if algorithm is not MD5 or SHA.
Initial patch by Mathieu Dupuy.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
AbstractDigestAuthHandler.get_algorithm_impls
Raise ValueError if algorithm is not MD5 or SHA.
Initial patch by Mathieu Dupuy.
|
| | | |
| | | |
| | | |
| | | | |
to format short Python version.
|
|\ \ \ \
| |/ / / |
|
| | | |
| | | |
| | | |
| | | | |
Based on patches by Brian Brazil and Daniel Rocco.
|
|\ \ \ \
| |/ / /
| | | |
| | | | |
Remove unnecessary test case comment in urllib.parse.py. These are asserted as test cases.
|
| | | |
| | | |
| | | |
| | | | |
as test cases.
|
| | | |
| | | |
| | | |
| | | | |
Patch contributed by Swati Jaiswal.
|
|\ \ \ \
| |/ / /
| | | |
| | | |
| | | | |
to ASCII replacements. Removed UTF-8 BOM from Misc/NEWS.
Original patch by Chris Angelico.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
extensions.
Patch by Nikolay Bogoychev.
|
| | | | |
|
|/ / /
| | |
| | |
| | | |
Patch by Martin Panter.
|
|\ \ \
| |/ /
| | |
| | | |
Patch from Daniel Andrade Groppe and Peter Lovett
|
| | |
| | |
| | |
| | | |
Patch from Daniel Andrade Groppe and Peter Lovett
|
| | |
| | |
| | |
| | |
| | | |
Patch by samwyse, completed by Arnon Yaari, and reviewed by
Martin Panter.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This fix is a superset of the functionality introduced by the issue #19494
enhancement, and supersedes that fix. Instead of a new handler, we have a new
password manager that tracks whether we should send the auth for a given uri.
This allows us to say "always send", satisfying #19494, or track that we've
succeeded in auth and send the creds right away on every *subsequent* request.
The support for using the password manager is added to AbstractBasicAuth,
which means the proxy handler also now can handle prior auth if passed
the new password manager.
Patch by Akshit Khurana, docs mostly by me.
|
| | |
| | |
| | |
| | | |
Patch by Demian Brecht.
|
|\ \ \
| |/ /
| | |
| | |
| | | |
robust at shutdown. If needs to release multiple resources, they are released
even if errors are occured.
|
| | |
| | |
| | |
| | |
| | | |
robust at shutdown. If needs to release multiple resources, they are released
even if errors are occured.
|
| | |
| | |
| | |
| | |
| | | |
ParseResultBytes, and SplitResultBytes to urllib.parse.__all__.
Patch by Martin Panter.
|
|\ \ \
| |/ /
| | |
| | | |
socket if the FTP connection failed to fix a ResourceWarning.
|
| | |
| | |
| | |
| | | |
the FTP connection failed to fix a ResourceWarning.
|
| | | |
|
|\ \ \
| |/ / |
|
| | |
| | |
| | |
| | | |
Patch by Wojtek Ruszczewski.
|
|\ \ \
| |/ / |
|
| | |
| | |
| | |
| | | |
check_hostname parameter
|