chore(deps): update dependency httpx to v0.23.0 [security] #1401
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.19.0
->==0.23.0
GitHub Vulnerability Alerts
CVE-2021-41945
Encode OSS httpx <=1.0.0.beta0 is affected by improper input validation in
httpx.URL
,httpx.Client
and some functions usinghttpx.URL.copy_with
.Release Notes
encode/httpx (httpx)
v0.23.0
Compare Source
Changed
utf-8
as the default character set, instead of falling back tocharset-normalizer
for auto-detection. To enable automatic character set detection, see the documentation. (#2165)Fixed
URL.copy_with
for some oddly formed URL cases. (#2185)iter_bytes
never yields zero-length chunks. (#2068)Authorization
header for redirects that are to the same origin, but are anhttp
-to-https
upgrade. (#2074)<16086 bytes of binary data>
instead. (#2076)--proxies
argument in the command line client help. (#2125).request
onHTTPError
exceptions. (#2158)v0.22.0
Compare Source
Added
socksio
package. (#2034)Fixed
__del__
with unclosed clients. (#2026)Headers.update(...)
to correctly handle repeated headers (#2038)v0.21.3
Compare Source
Fixed
SyncByteStream
orAsyncByteStream
. Regression in 0.21.2. (#2016)v0.21.2
Compare Source
Fixed
v0.21.1
Compare Source
Fixed
response.url
property is now correctly annotated asURL
, instead ofOptional[URL]
. (#1940)v0.21.0
Compare Source
The 0.21.0 release integrates against a newly redesigned
httpcore
backend.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/--verbose
is used.-v/--verbose
is used.should be formatted as HTTP/1.1 or HTTP/2, based on the result of the HTTP/2 negotiation.
Removed
v0.20.0
Compare 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_redirects
flag is nowfollow_redirects
and 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
httpx
command-line client..is_informational
,.is_success
,.is_redirect
,.is_client_error
, and.is_server_error
properties for checking 1xx, 2xx, 3xx, 4xx, and 5xx response types. Note that the behaviour of
.is_redirect
is 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_location
location 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 aTextIO
interface, not aBytesIO
interface. Additionally, the WSGITransport now accepts awsgi_error
configuration. (Pull #1828)Configuration
📅 Schedule: Branch creation - "" in timezone 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 this update again.
This PR was generated by Mend Renovate. View the repository job log.