phin icon indicating copy to clipboard operation
phin copied to clipboard

Support for brotli compression

Open crystalfp opened this issue 2 years ago • 0 comments

The package is used inside Pactum and do not access brotli compressed files.

I know it is an indirect issue (the culprit is phin or pactum?), but I'm trying to collect more evidence on the problem.

Environment details

  • Programming language: Javascript
  • OS: Windows 11
  • Language runtime version: Node 18.11.0
  • Package version: 3.6.0

Steps to reproduce

  1. Access http://localhost/ where the root page is compressed with brotli, that is, the file to access is index.html.br
  2. The server respond with 404
  3. Now access http://localhost/index.html.br
  4. The server find the file but return the compressed binary content.
  5. Use an external brotli decompressor and the returned data is indeed the index.html content

crystalfp avatar Oct 30 '22 10:10 crystalfp