feat: Presigned URLs

This commit is contained in:
Rohan Verma
2018-12-24 13:36:29 +05:30
parent 41b1c70183
commit d218b23f05
7 changed files with 242 additions and 5 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ func (s3 *S3) FileDelete(u DeleteInput) error {
s3.writeStringToSign(h, t, req)
auth := bytes.NewBufferString("AWS4-HMAC-SHA256 ")
auth := bytes.NewBufferString(algorithm)
auth.Write([]byte("Credential=" + s3.AccessKey + "/" + s3.creds(t)))
auth.Write([]byte{',', ' '})
auth.Write([]byte("SignedHeaders="))