inflation
inflation copied to clipboard
Easily unzip an HTTP stream
Adds backwards-compatible support for Brotli decompression for versions of Node that natively support Brotli (10.16.0+). For reference, Node LTS is soon to be 14.15.0+ only. If the version of Node...
fix #16 Added a new test for it, and all tests pass.
Error: Unsupported Content-Encoding: utf-8 at inflate (/Users/lizuncong/Documents/SheInProjects/mes_wechat/node_modules/inflation/index.js:23:15) at /Users/lizuncong/Documents/SheInProjects/mes_wechat/node_modules/co-body/lib/json.js:41:18
Docs were taken literally from the readme.
Should assert that there is no encoding on the stream handed to the module.
I don't think it should use `zlib.Unzip`, because I feel like it'll allow people to accidentally send the wrong information to your server without realizing, i.e. they send a gzip...
Add the ability to limit the size of the incoming stream. The same limit can apply to the decompressed stream, most likely.