File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ module.exports = CoreObject.extend({
44
44
var revisionKey = joinUriSegments ( options . prefix , key ) ;
45
45
var putObject = Promise . denodeify ( client . putObject . bind ( client ) ) ;
46
46
var gzippedFilePaths = options . gzippedFilePaths || [ ] ;
47
- var isGzipped = gzippedFilePaths . indexOf ( 'index.html' ) !== - 1 ;
47
+ var isGzipped = gzippedFilePaths . indexOf ( options . filePattern ) !== - 1 ;
48
48
49
49
var params = {
50
50
Bucket : bucket ,
Original file line number Diff line number Diff line change @@ -137,8 +137,8 @@ describe('s3', function() {
137
137
} ) ;
138
138
} ) ;
139
139
140
- it ( 'sets the Content-Encoding header to gzip when the index file is gziped ' , function ( ) {
141
- options . gzippedFilePaths = [ 'index.html' ] ;
140
+ it ( 'sets the Content-Encoding header to gzip when the index file is gzipped ' , function ( ) {
141
+ options . gzippedFilePaths = [ filePattern ] ;
142
142
var promise = subject . upload ( options ) ;
143
143
144
144
return assert . isFulfilled ( promise )
You can’t perform that action at this time.
0 commit comments