phin
phin copied to clipboard
Support for brotli compression
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
- Access
http://localhost/
where the root page is compressed with brotli, that is, the file to access isindex.html.br
- The server respond with 404
- Now access
http://localhost/index.html.br
- The server find the file but return the compressed binary content.
- Use an external brotli decompressor and the returned data is indeed the
index.html
content