File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -44,14 +44,15 @@ module.exports = CoreObject.extend({
44
44
var bucket = options . bucket ;
45
45
var acl = options . acl ;
46
46
var allowOverwrite = options . allowOverwrite ;
47
- var key = path . join ( options . prefix , options . filePattern + ":" + options . revisionKey ) ;
47
+ var key = options . filePattern + ":" + options . revisionKey ;
48
+ var revisionKey = joinUriSegments ( options . prefix , key ) ;
48
49
var putObject = Promise . denodeify ( client . putObject . bind ( client ) ) ;
49
50
var gzippedFilePaths = options . gzippedFilePaths || [ ] ;
50
51
var isGzipped = gzippedFilePaths . indexOf ( 'index.html' ) !== - 1 ;
51
52
52
53
var params = {
53
54
Bucket : bucket ,
54
- Key : key ,
55
+ Key : revisionKey ,
55
56
ACL : acl ,
56
57
ContentType : mime . lookup ( options . filePath ) || 'text/html' ,
57
58
CacheControl : 'max-age=0, no-cache'
@@ -73,7 +74,7 @@ module.exports = CoreObject.extend({
73
74
. then ( function ( fileContents ) {
74
75
params . Body = fileContents ;
75
76
return putObject ( params ) . then ( function ( ) {
76
- plugin . log ( '✔ ' + key , { verbose : true } ) ;
77
+ plugin . log ( '✔ ' + revisionKey , { verbose : true } ) ;
77
78
} ) ;
78
79
} ) ;
79
80
} ,
You can’t perform that action at this time.
0 commit comments