We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 674ae24 commit 1e623e9Copy full SHA for 1e623e9
1 file changed
lib/web/fetch/index.js
@@ -2155,6 +2155,12 @@ async function httpNetworkFetch (
2155
flush: zlib.constants.BROTLI_OPERATION_FLUSH,
2156
finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
2157
}))
2158
+ } else if (coding === 'zstd' && typeof zlib.createZstdDecompress === 'function') {
2159
+ // Node.js v23.8.0+ and v22.15.0+ supports Zstandard
2160
+ decoders.push(zlib.createZstdDecompress({
2161
+ flush: zlib.constants.ZSTD_e_continue,
2162
+ finishFlush: zlib.constants.ZSTD_e_end
2163
+ }))
2164
} else {
2165
decoders.length = 0
2166
break
0 commit comments