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 — [v7.x] fix(decompress): treat inherited Object.prototype names as unsupported encodings (#5807) by mrityunjay-pandey · Pull Request #6024 · nodejs/undici Conversation
Contributor
This relates to...Backport of #5807 to v7.x. Rationale
Changes
FeaturesN/A Bug Fixes
Breaking Changes and DeprecationsN/A Status
Tested locally on Linux with Node 24:
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…d encodings (nodejs#5807) supportedEncodings is a plain object literal, so the guard if (!supportedEncodings[encoding]) resolves inherited names through the prototype chain instead of rejecting them. onResponseStart lowercases the header first, which leaves exactly two reachable from the wire: constructor and __proto__. A response carrying Content-Encoding: constructor calls Object(), pushes the plain object it returns into the decompressor chain, and the request then never settles; __proto__ throws TypeError out of the interceptor. Give the table a null prototype so only its own entries can match. (cherry picked from commit ca5111e)
|
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 @@ ## v7.x #6024 +/- ## ======================================= Coverage 93.16% 93.17% ======================================= Files 112 112 Lines 37632 37633 +1 ======================================= + Hits 35059 35063 +4 + Misses 2573 2570 -3 ☔ 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.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.