File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ var signParams = map[string]bool{
30
30
"response-content-language" : true ,
31
31
"response-content-type" : true ,
32
32
"response-expires" : true ,
33
+ "restore" : true ,
33
34
"torrent" : true ,
34
35
"uploadId" : true ,
35
36
"uploads" : true ,
Original file line number Diff line number Diff line change @@ -147,6 +147,20 @@ var signTest = []struct {
147
147
// Doesn't match the example in the Amazon docs
148
148
"AWS AKIAIOSFODNN7EXAMPLE:DXGmXMY+1QnRGC7vicUqu1gTmK4=" ,
149
149
},
150
+ {
151
+ DefaultService ,
152
+ "POST" ,
153
+ // object?restore is required in CanonicalizedResource for:
154
+ // http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOSTrestore.html
155
+ "http://bucketname.S3.amazonaws.com/photo1.jpg?restore" ,
156
+ http.Header {
157
+ "x-amz-date" : {"Mon, 22 Oct 2012 01:49:52 GMT" },
158
+ "Content-MD5" : {"p5/WA/oEr30qrEEl21PAqw==" },
159
+ "Content-Length" : {"125" },
160
+ },
161
+ "POST\n p5/WA/oEr30qrEEl21PAqw==\n \n \n x-amz-date:Mon, 22 Oct 2012 01:49:52 GMT\n /bucketname/photo1.jpg?restore" ,
162
+ "AWS AKIAIOSFODNN7EXAMPLE:Yuldf0uSoOutFCGMkKYQzxVYeDk=" ,
163
+ },
150
164
{
151
165
StorageIOService ,
152
166
"GET" ,
You can’t perform that action at this time.
0 commit comments