fix(deps): update dependency httpx to v0.23.0 [security] #4
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:
==0.18.2->==0.23.0>=0.18.0->>=0.23.0>= 0.18.0->>=0.23.0CVE-2021-41945 / GHSA-h8pj-cxx2-jfg2 / PYSEC-2022-183
More information
Details
Encode OSS httpx <=1.0.0.beta0 is affected by improper input validation in
httpx.URL,httpx.Clientand some functions usinghttpx.URL.copy_with.Severity
Unknown
References
This data is provided by OSV and the PyPI Advisory Database (CC-BY 4.0).
Improper Input Validation in httpx
CVE-2021-41945 / GHSA-h8pj-cxx2-jfg2 / PYSEC-2022-183
More information
Details
Encode OSS httpx <=1.0.0.beta0 is affected by improper input validation in
httpx.URL,httpx.Clientand some functions usinghttpx.URL.copy_with.Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Release Notes
encode/httpx (httpx)
v0.23.0Compare Source
Changed
utf-8as the default character set, instead of falling back tocharset-normalizerfor auto-detection. To enable automatic character set detection, see the documentation. (#2165)Fixed
URL.copy_withfor some oddly formed URL cases. (#2185)iter_bytesnever yields zero-length chunks. (#2068)Authorizationheader for redirects that are to the same origin, but are anhttp-to-httpsupgrade. (#2074)<16086 bytes of binary data>instead. (#2076)--proxiesargument in the command line client help. (#2125).requestonHTTPErrorexceptions. (#2158)v0.22.0Compare Source
Added
socksiopackage. (#2034)Fixed
__del__with unclosed clients. (#2026)Headers.update(...)to correctly handle repeated headers (#2038)v0.21.3Compare Source
Fixed
SyncByteStreamorAsyncByteStream. Regression in 0.21.2. (#2016)v0.21.2Compare Source
Fixed
v0.21.1Compare Source
Fixed
response.urlproperty is now correctly annotated asURL, instead ofOptional[URL]. (#1940)v0.21.0Compare Source
The 0.21.0 release integrates against a newly redesigned
httpcorebackend.Both packages ought to automatically update to the required versions, but if you are
seeing any issues, you should ensure that you have
httpx==0.21.*andhttpcore==0.14.*installed.Added
-v/--verboseis used.-v/--verboseis used.should be formatted as HTTP/1.1 or HTTP/2, based on the result of the HTTP/2 negotiation.
Removed
v0.20.0Compare Source
The 0.20.0 release adds an integrated command-line client, and also includes some
design changes. The most notable of these is that redirect responses are no longer
automatically followed, unless specifically requested.
This design decision prioritises a more explicit approach to redirects, in order
to avoid code that unintentionally issues multiple requests as a result of
misconfigured URLs.
For example, previously a client configured to send requests to
http://api.github.com/would end up sending every API request twice, as each request would be redirected to
https://api.github.com/.If you do want auto-redirect behaviour, you can enable this either by configuring
the client instance with
Client(follow_redirects=True), or on a per-requestbasis, with
.get(..., follow_redirects=True).This change is a classic trade-off between convenience and precision, with no "right"
answer. See discussion #1785 for more
context.
The other major design change is an update to the Transport API, which is the low-level
interface against which requests are sent. Previously this interface used only primitive
datastructures, like so...
Now the interface is much simpler...
Changed
allow_redirectsflag is nowfollow_redirectsand defaults toFalse.raise_for_status()method will now raise an exception for any responsesexcept those with 2xx status codes. Previously only 4xx and 5xx status codes
would result in an exception.
response = transport.handle_request(request).client.send()method no longer accepts atimeout=...argument, but theclient.build_request()does. This required by the signature change of theTransport API. The request timeout configuration is now stored on the request
instance, as
request.extensions['timeout'].Added
httpxcommand-line client..is_informational,.is_success,.is_redirect,.is_client_error, and.is_server_errorproperties for checking 1xx, 2xx, 3xx, 4xx, and 5xx response types. Note that the behaviour of
.is_redirectis slightly different in that it now returns True for all 3xx responses, in order to allow for a consistent set of properties onto the different HTTP status code types. Theresponse.has_redirect_locationlocation may be used to determine responses with properly formed URL redirects.Fixed
response.iter_bytes()no longer raises a ValueError when called on a response with no content. (Pull #1827)'wsgi.error'configuration now defaults tosys.stderr, and is corrected to be aTextIOinterface, not aBytesIOinterface. Additionally, the WSGITransport now accepts awsgi_errorconfiguration. (Pull #1828)v0.19.0Compare Source
Added
Client(allow_redirects=<bool>). (Pull #1790)charsetis included in the responseContent-Typeheader. (Pull #1791)Changed
modeargument fromhttpx.Proxy(..., mode=...). (Pull #1795)Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.