File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -131,14 +131,14 @@ module.exports = CoreObject.extend({
131
131
var isBrotliCompressed = brotliCompressedFilePaths . indexOf ( filePath ) !== - 1 ;
132
132
133
133
if ( isGzipped && path . extname ( basePath ) === '.gz' ) {
134
- var basePathUngzipped = path . basename ( basePath , '.gz' ) ;
134
+ var basePathUngzipped = filePath . slice ( 0 , - 3 ) ;
135
135
if ( filePaths && filePaths . indexOf ( basePathUngzipped ) !== - 1 ) {
136
136
contentType = mime . getType ( basePathUngzipped ) || defaultType ;
137
137
encoding = this . _mimeCharsetsLookup ( contentType ) ;
138
138
}
139
139
}
140
140
if ( isBrotliCompressed ) {
141
- var basePathUncompressed = path . basename ( basePath , '.br' ) ;
141
+ var basePathUncompressed = filePath . slice ( 0 , - 3 ) ;
142
142
if ( filePaths && filePaths . indexOf ( basePathUncompressed ) !== - 1 ) {
143
143
contentType = mime . getType ( basePathUncompressed ) || defaultType ;
144
144
encoding = this . _mimeCharsetsLookup ( contentType ) ;
You can’t perform that action at this time.
0 commit comments