GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — fix: preserve HTTP/2 for non-upgrade legacy requests by mcollina · Pull Request #5811 · nodejs/undici Conversation
Member
Summary
Why
The override was introduced for legacy WebSocket consumers that cannot retry with HTTP/1.1 when HTTP/2 Extended CONNECT is unavailable. Scoping it to upgrade requests preserves that workaround without changing the protocol for ordinary fetch traffic. Tests
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## main #5811 +/- ## ========================================== - Coverage 93.52% 93.48% -0.05% ========================================== Files 110 110 Lines 39415 39522 +107 ========================================== + Hits 36864 36947 +83 - Misses 2551 2575 +24 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
* Revert "fix: preserve HTTP/2 for legacy fetch consumers (#5811)" This reverts commit 073c88f. Signed-off-by: Matteo Collina <[email protected]> * test: cover global fetch redirects after undici import Signed-off-by: Matteo Collina <[email protected]> --------- Signed-off-by: Matteo Collina <[email protected]>
Dependabot #96 (undici 8.10.2 -> 8.11.0) keeps HTTP/2 for requests from Node's bundled fetch (nodejs/undici#5811), and on HTTP/2 the content-encoding never reaches that fetch: MangaDex's gzip body arrived as raw bytes, r.json() threw, and every built-in source would have come back empty. Only the desktop's MangaDex smoke saw it, as "latest 200, 0 candidates" -- the line a rate-limited runner prints. This test reproduces it locally (HTTPS offering HTTP/2, a gzipped answer, the undici package loaded as the app loads it): green on 8.10.2, red on 8.11.0 with "still compressed (over HTTP 2.0)". Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.