Repository navigation
π¦ Concurrent HTTP/2 uploads no longer stall
httpx2 and httpcore2 2.16.1 are a patch release. Every change is a fix. You will notice it most if you run several HTTP/2 uploads over one connection, where requests could hang until the read timeout.
pip install --upgrade httpx2==2.16.1- Uploads sharing an HTTP/2 connection finish instead of waiting for the read timeout (#1163). Once the flow control window was exhausted, a waiting upload could miss the
WINDOW_UPDATEthat another task had already read, then block on a read the server had nothing to answer.httpcore2now rechecks the window after acquiring the read lock. - A missing
Hostheader raisesLocalProtocolError(#1319). An HTTP/2 request sent directly to anhttpcore2connection withoutHostraisedIndexErrorbefore.
π§ Redirects, proxies and Digest auth
- A redirect with an invalid
Locationreturns the response when redirects are not followed (#1064).httpx2raisedRemoteProtocolErrorand discarded the response. You now get the response with its headers, andresponse.next_requestisNone. *.example.cominNO_PROXYmatches subdomains (#1277). The entry never matched before, so those requests still went through the proxy. It now behaves like.example.com.- Digest challenges with mixed-case parameter names are accepted (#1315). A challenge such as
Digest Realm="r", Nonce="n"raisedProtocolErrorbefore. Whitespace around=is allowed too.
π¦ Signed releases
- The publish workflow generates PEP 740 attestations (#1339). Every distribution is signed before
uv publishuploads it. Releases since the move touv publishhad no provenance on PyPI.
Full changelog: v2.16.0...v2.16.1