mirror of
https://github.com/tenrok/axios.git
synced 2026-06-08 17:22:34 +03:00
This commit is contained in:
committed by
GitHub
parent
ae003913a3
commit
4c89f25196
@@ -471,7 +471,7 @@ export default isHttpAdapterSupported && function httpAdapter(config) {
|
||||
delete res.headers['content-encoding'];
|
||||
}
|
||||
|
||||
switch (res.headers['content-encoding']) {
|
||||
switch ((res.headers['content-encoding'] || '').toLowerCase()) {
|
||||
/*eslint default-case:0*/
|
||||
case 'gzip':
|
||||
case 'x-gzip':
|
||||
|
||||
@@ -517,6 +517,7 @@ describe('supports http with nodejs', function () {
|
||||
|
||||
for (const [typeName, zipped] of Object.entries({
|
||||
gzip: gzip(responseBody),
|
||||
GZIP: gzip(responseBody),
|
||||
compress: gzip(responseBody),
|
||||
deflate: deflate(responseBody),
|
||||
'deflate-raw': deflateRaw(responseBody),
|
||||
|
||||
Reference in New Issue
Block a user