Last 12 weeks · 0 commits
4 of 6 standards met
Return of this function is instance of http.IncomingMessage The problem is that this function does not delete content-encoding header, so the result is that you have an IncomingMessage object with content-encoding header with original value like 'gzip' but the stream is no longer compressed. I think the the function should also delete content-encoding header before returning the result stream
Repository: sindresorhus/decompress-response. Description: Decompress a HTTP response if needed Stars: 75, Forks: 12. Primary language: JavaScript. Languages: JavaScript (96.8%), TypeScript (3.2%). License: MIT. Latest release: v10.0.0 (10mo ago). Open PRs: 0, open issues: 0. Last activity: 10mo ago. Community health: 85%. Top contributors: sindresorhus, kevva, BendingBender, coreyfarrell, danielgindi, lukechilds, Richienb, bodinsamuel, binary-person, szmarczak.