decompress-response
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -7,3 +7,3 @@ 'use strict'; | ||
const decompressResponse = response => { | ||
const contentEncoding = response.headers['content-encoding']; | ||
const contentEncoding = (response.headers['content-encoding'] || '').toLowerCase(); | ||
@@ -10,0 +10,0 @@ if (!['gzip', 'deflate', 'br'].includes(contentEncoding)) { |
{ | ||
"name": "decompress-response", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "Decompress a HTTP response if needed", | ||
@@ -43,4 +43,4 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@types/node": "^11.12.2", | ||
"ava": "^1.4.1", | ||
"@types/node": "^12.7.1", | ||
"ava": "^2.2.0", | ||
"get-stream": "^5.0.0", | ||
@@ -47,0 +47,0 @@ "pify": "^4.0.1", |
@@ -42,4 +42,12 @@ # decompress-response [![Build Status](https://travis-ci.org/sindresorhus/decompress-response.svg?branch=master)](https://travis-ci.org/sindresorhus/decompress-response) | ||
## License | ||
--- | ||
MIT © [Sindre Sorhus](https://sindresorhus.com) | ||
<div align="center"> | ||
<b> | ||
<a href="https://tidelift.com/subscription/pkg/npm-unzip-response?utm_source=npm-unzip-response&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a> | ||
</b> | ||
<br> | ||
<sub> | ||
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies. | ||
</sub> | ||
</div> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5259
53