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 @@ -125,14 +125,14 @@ module.exports = CoreObject.extend({
125
125
var isBrotliCompressed = brotliCompressedFilePaths . indexOf ( filePath ) !== - 1 ;
126
126
127
127
if ( isGzipped && path . extname ( basePath ) === '.gz' ) {
128
- var basePathUngzipped = path . basename ( basePath , '.gz' ) ;
128
+ var basePathUngzipped = filePath . slice ( 0 , - 3 ) ;
129
129
if ( filePaths && filePaths . indexOf ( basePathUngzipped ) !== - 1 ) {
130
130
contentType = mime . lookup ( basePathUngzipped ) ;
131
131
encoding = mime . charsets . lookup ( contentType ) ;
132
132
}
133
133
}
134
134
if ( isBrotliCompressed ) {
135
- var basePathUncompressed = path . basename ( basePath , '.br' ) ;
135
+ var basePathUncompressed = filePath . slice ( 0 , - 3 ) ;
136
136
if ( filePaths && filePaths . indexOf ( basePathUncompressed ) !== - 1 ) {
137
137
contentType = mime . lookup ( basePathUncompressed ) ;
138
138
encoding = mime . charsets . lookup ( contentType ) ;
You can’t perform that action at this time.
0 commit comments