chore(deps): update dependency requests to v2.20.0#4
Open
mend-for-github-com[bot] wants to merge 1 commit into
Open
chore(deps): update dependency requests to v2.20.0#4mend-for-github-com[bot] wants to merge 1 commit into
mend-for-github-com[bot] wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==2.9.1->==2.20.0By merging this PR, the below vulnerabilities will be automatically resolved:
Release Notes
psf/requests
v2.20.0Compare Source
Bugfixes
charset=utf8 v Charset=utf8).
uncaught urllib3 exceptions.
from https to http on the same hostname. (CVE-2018-18074)
should_bypass_proxiesnow handles URIs without hostnames (e.g.files).
Dependencies
Deprecations
v2.19.1Compare Source
Bugfixes
initfunction failed tryingto append to a
__doc__value ofNone.v2.19.0Compare Source
Improvements
< 1.3.4
adapter.
7.1.2)
Request.content.Bugfixes
Linkheaders withparse_header_links()no longerreturn one bogus entry.
archive would raise an
IOError.ImportErroron windows system which donot support
winregmodule.password in the request. This also fixes the issue of DNS queries
failing on macOS.
Noneas a file pointer to thefilesparam no longerraises an exception.
copyon aRequestsCookieJarwill now preserve the cookiepolicy correctly.
Dependencies
v2.18.4Compare Source
Improvements
easier debugging
Dependencies
v2.18.3Compare Source
Improvements
$ python -m requests.helpnow includes the installedversion of idna.
Bugfixes
ConnectionErrorinstead ofSSLErrorwhen encountering SSL problems when using urllib3 v1.22.v2.18.2Compare Source
Bugfixes
requests.helpno longer fails on Python 2.6 due to the absence ofssl.OPENSSL_VERSION_NUMBER.Dependencies
v2.18.1Compare Source
Bugfixes
*.whlcontainedincorrect data that regressed the fix in v2.17.3.
v2.18.0Compare Source
Improvements
Responseis now a context manager, so can be used directly in awithstatement without first having to be wrapped bycontextlib.closing().Bugfixes
number of CPU cores
v2.17.3Compare Source
Improvements
packagesnamespace identity support, for monkeypatchinglibraries.
v2.17.2Compare Source
Improvements
packagesnamespace identity support, for monkeypatchinglibraries.
v2.17.1Compare Source
Improvements
packagesnamespace identity support, for monkeypatchinglibraries.
v2.17.0Compare Source
Improvements
v2.16.5Compare Source
$ python -m requests.help.v2.16.4Compare Source
$ python -m requests.helpcommand, fordebugging with maintainers!
v2.16.3Compare Source
requests.packagesnamespace for compatibilityreasons.
v2.16.2Compare Source
requests.packagesnamespace for compatibilityreasons.
No code modification (noted below) should be necessary any longer.
v2.16.1Compare Source
requests.packagesnamespace for compatibilityreasons.
urllib3version parsing.Note: code that was written to import against the
requests.packagesnamespace previously will have to import code thatrests at this module-level now.
For example:
Will need to be re-written to be:
Or, even better:
v2.16.0Compare Source
v2.15.1Compare Source
v2.15.0Compare Source
Improvements
Response.nextproperty, for getting the nextPreparedResponsefrom a redirect chain (whenallow_redirects=False).__version__module.Bugfixes
requests.utils.get_environ_proxies().v2.14.2Compare Source
Bugfixes
markers to widen compatibility with older setuptools releases.
v2.14.1Compare Source
Bugfixes
releases.
v2.14.0Compare Source
Improvements
no_proxyas a key to theproxiesdictionary to provide handling similar to the
NO_PROXYenvironmentvariable.
directories Requests now raises
IOError, rather than failing atthe time of the HTTPS request with a fairly inscrutable certificate
validation error.
SessionRedirectMixinwas slightly altered.resolve_redirectswill now detect a redirect by callingget_redirect_target(response)instead of directly queryingResponse.is_redirectandResponse.headers['location']. Advancedusers will be able to process malformed redirects more easily.
higher resolution on Windows.
win_inet_ptonas conditional dependency for the[socks]extra on Windows with Python 2.7.
check doesn't use forward and reverse DNS requests anymore
httpbut are nothttporhttpsno longer have their host parts forced to lowercase.Bugfixes
Locationheader values inredirects. Fewer
UnicodeDecodeErrorsare encountered on Python 2,and Python 3 now correctly understands that Latin-1 is unlikely to
be the correct encoding.
seekfile to find out its length fails, we nowappropriately handle that by aborting our content-length
calculations.
HTTPDigestAuthto only respond to auth challenges madeon 4XX responses, rather than to all auth challenges.
DeprecationWarningon Python 3.6./o\\) no longer has a big head. I'msure this is what you were all worrying about most.
Miscellaneous
v2.13.0Compare Source
Features
idnalibrary when we've determined we need it. Thiswill save some memory for users.
Miscellaneous
v2.12.5Compare Source
Bugfixes
big-endian UTF-32 with BOM.
v2.12.4Compare Source
Bugfixes
the basic auth parameters. While support for this behaviour has been
re-added, the behaviour is deprecated and will be removed in the
future.
v2.12.3Compare Source
Bugfixes
"http". These URLs have historically been processed as though they
were HTTP-schemed URLs, and so have had parameters added. This was
removed in v2.12.2 in an overzealous attempt to resolve problems
with IDNA-encoding those URLs. This change was reverted: the other
fixes for IDNA-encoding have been judged to be sufficient to return
to the behaviour Requests had before v2.12.0.
v2.12.2Compare Source
Bugfixes
invalid but which are widely accepted. Requests will now attempt to
IDNA-encode a URL if it can but, if it fails, and the host contains
only ASCII characters, it will be passed through optimistically.
This will allow users to opt-in to using IDNA2003 themselves if they
want to, and will also allow technically invalid but still common
hostnames.
InvalidSchemaerrors.would still have HTTP URL preparation applied to them.
auth.
constructing a Response object would cause
Response.contenttoraise an
AttributeError.v2.12.1Compare Source
Bugfixes
urllib3.
Miscellaneous
v2.12.0Compare Source
Improvements
IDNA2008. This updated support is required for several forms of IDNs
and is mandatory for .de domains.
no longer read an entire
StringIOinto memory.Content-Lengthheaders forPreparedRequestobjects.tellmethodbut do have a
seekmethod.Mappingis now treated like adictionary by the
data=keyword argument.than stripping the credentials.
request is redirected with a 307 or 308 status code, Requests will
now attempt to rewind the body object so it can be replayed.
Bugfixes
response.close, the call toclosewill bepropagated through to non-urllib3 backends.
ALL_PROXYenvironment variable would bepreferred over scheme-specific variables like
HTTP_PROXY.falling back to decoding using ISO 8859-1 instead.
when using custom Host headers if those Host headers did not use the
native string type for the platform.
Miscellaneous
v2.11.1Compare Source
Bugfixes
iter_contentwithdecode_unicode=Trueforstreamed bodies would raise
AttributeError. This bug wasintroduced in 2.11.
block when following a redirect that transforms the verb from
POST/PUT to GET.
v2.11.0Compare Source
Improvements
ALL_PROXYenvironment variable.characters to reduce risk of header smuggling.
Bugfixes
TypeErrorwhen attempting to decode a JSONresponse that occurred in an error case. Now correctly returns a
ValueError.NO_PROXYenvironment variables: Requests now treats it as aspecific IP.
obscure OpenSSL errors in certain network conditions (yes, really).
iter_contentonly acceptsintegers and
Nonefor chunk sizes.would have the underlying connection closed but not returned to the
connection pool, which could cause Requests to hang in situations
where the
HTTPAdapterhad been configured to use a blockingconnection pool.
Miscellaneous
acceptable header values. This release does not.
v2.10.0Compare Source
New Features
$ pip install requests[socks])Miscellaneous
v2.9.2Compare Source
Improvements
OrderedDict as its underlying datastore.
Bugfixes
tell(), send themvia chunked transfer encoding instead of failing.