File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -125,14 +125,14 @@ module.exports = CoreObject.extend({
125125 var isBrotliCompressed = brotliCompressedFilePaths . indexOf ( filePath ) !== - 1 ;
126126
127127 if ( isGzipped && path . extname ( basePath ) === '.gz' ) {
128- var basePathUngzipped = path . basename ( basePath , '.gz' ) ;
128+ var basePathUngzipped = filePath . slice ( 0 , - 3 ) ;
129129 if ( filePaths && filePaths . indexOf ( basePathUngzipped ) !== - 1 ) {
130130 contentType = mime . lookup ( basePathUngzipped ) ;
131131 encoding = mime . charsets . lookup ( contentType ) ;
132132 }
133133 }
134134 if ( isBrotliCompressed ) {
135- var basePathUncompressed = path . basename ( basePath , '.br' ) ;
135+ var basePathUncompressed = filePath . slice ( 0 , - 3 ) ;
136136 if ( filePaths && filePaths . indexOf ( basePathUncompressed ) !== - 1 ) {
137137 contentType = mime . lookup ( basePathUncompressed ) ;
138138 encoding = mime . charsets . lookup ( contentType ) ;
You can’t perform that action at this time.
0 commit comments