File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -471,7 +471,7 @@ export default isHttpAdapterSupported && function httpAdapter(config) {
471471 delete res . headers [ 'content-encoding' ] ;
472472 }
473473
474- switch ( res . headers [ 'content-encoding' ] ) {
474+ switch ( ( res . headers [ 'content-encoding' ] || '' ) . toLowerCase ( ) ) {
475475 /*eslint default-case:0*/
476476 case 'gzip' :
477477 case 'x-gzip' :
Original file line number Diff line number Diff line change @@ -517,6 +517,7 @@ describe('supports http with nodejs', function () {
517517
518518 for ( const [ typeName , zipped ] of Object . entries ( {
519519 gzip : gzip ( responseBody ) ,
520+ GZIP : gzip ( responseBody ) ,
520521 compress : gzip ( responseBody ) ,
521522 deflate : deflate ( responseBody ) ,
522523 'deflate-raw' : deflateRaw ( responseBody ) ,
You can’t perform that action at this time.
0 commit comments