feat(fetch): add zstandard decompression support#4238
Conversation
|
Just saw your comment, thanks! I've amended the last commit to add two more test cases to match the ones for gzip and brotli:
|
KhafraDev
left a comment
There was a problem hiding this comment.
The tests should be added to test/fetch; test/node-fetch is taken from node-fetch.
|
@KhafraDev I noticed the other encoding tests (like gzip and brotli) are in Would you prefer I move all of them into the |
|
@KhafraDev Ah, I see now, Thanks for the clarification. I’ll move the new test cases into the |
|
@KhafraDev I've moved the main test to |
|
@KhafraDev I applied your suggestion |
* feat(fetch): add zstandard decompression support * test(fetch): add a test case for zstandard decompression support
This relates to...
Closes #2847
Changes
lib/web/fetch/index.js: Added a condition inonHeadersto handle thezstdcontent-encoding header.test/fetch/encoding.js: Added a test case forzstddecompression.Features
Adds support for Zstandard (zstd) decompression in
fetch.Status