We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
content-encoding
1 parent ae00391 commit 4c89f25Copy full SHA for 4c89f25
2 files changed
lib/adapters/http.js
@@ -471,7 +471,7 @@ export default isHttpAdapterSupported && function httpAdapter(config) {
471
delete res.headers['content-encoding'];
472
}
473
474
- switch (res.headers['content-encoding']) {
+ switch ((res.headers['content-encoding'] || '').toLowerCase()) {
475
/*eslint default-case:0*/
476
case 'gzip':
477
case 'x-gzip':
test/unit/adapters/http.js
@@ -517,6 +517,7 @@ describe('supports http with nodejs', function () {
517
518
for (const [typeName, zipped] of Object.entries({
519
gzip: gzip(responseBody),
520
+ GZIP: gzip(responseBody),
521
compress: gzip(responseBody),
522
deflate: deflate(responseBody),
523
'deflate-raw': deflateRaw(responseBody),
0 commit comments