File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ var genericAWSClient = function(obj) {
42
42
var body = qs . stringify ( query ) ;
43
43
var headers = {
44
44
"Host" : obj . host ,
45
- "Content-Type" : "application/x-www-form-urlencoded" ,
45
+ "Content-Type" : "application/x-www-form-urlencoded; charset=utf-8 " ,
46
46
"Content-Length" : body . length
47
47
} ;
48
48
@@ -99,6 +99,8 @@ var genericAWSClient = function(obj) {
99
99
// Amazon signature algorithm seems to require this
100
100
stringToSign = stringToSign . replace ( / ' / g, "%27" ) ;
101
101
stringToSign = stringToSign . replace ( / \* / g, "%2A" ) ;
102
+ stringToSign = stringToSign . replace ( / \( / g, "%28" ) ;
103
+ stringToSign = stringToSign . replace ( / \) / g, "%29" ) ;
102
104
103
105
return hmacSha256 ( obj . secretAccessKey , stringToSign ) ;
104
106
}
You can’t perform that action at this time.
0 commit comments