fix: Delete credentials unsupported authorization type

This commit is contained in:
Rohan Verma
2018-12-26 15:44:16 +05:30
parent 8079b244c7
commit c3e6335634
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -260,7 +260,7 @@ func (s3 *S3) FileDelete(u DeleteInput) error {
s3.writeStringToSign(h, t, req)
auth := bytes.NewBufferString(algorithm)
auth.Write([]byte("Credential=" + s3.AccessKey + "/" + s3.creds(t)))
auth.Write([]byte(" Credential=" + s3.AccessKey + "/" + s3.creds(t)))
auth.Write([]byte{',', ' '})
auth.Write([]byte("SignedHeaders="))
writeHeaderList(auth, req)
-1
View File
@@ -59,7 +59,6 @@ func TestS3_FileUpload(t *testing.T) {
args: args{
UploadInput{
Bucket: os.Getenv("AWS_S3_BUCKET"),
Bucket: "zerodha-testbucket",
ObjectKey: "xyz/image.png",
ContentType: "image/png",
FileName: "avatar.png",