fix: Delete credentials unsupported authorization type
This commit is contained in:
+1
-1
@@ -260,7 +260,7 @@ func (s3 *S3) FileDelete(u DeleteInput) error {
|
|||||||
s3.writeStringToSign(h, t, req)
|
s3.writeStringToSign(h, t, req)
|
||||||
|
|
||||||
auth := bytes.NewBufferString(algorithm)
|
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{',', ' '})
|
||||||
auth.Write([]byte("SignedHeaders="))
|
auth.Write([]byte("SignedHeaders="))
|
||||||
writeHeaderList(auth, req)
|
writeHeaderList(auth, req)
|
||||||
|
|||||||
@@ -59,7 +59,6 @@ func TestS3_FileUpload(t *testing.T) {
|
|||||||
args: args{
|
args: args{
|
||||||
UploadInput{
|
UploadInput{
|
||||||
Bucket: os.Getenv("AWS_S3_BUCKET"),
|
Bucket: os.Getenv("AWS_S3_BUCKET"),
|
||||||
Bucket: "zerodha-testbucket",
|
|
||||||
ObjectKey: "xyz/image.png",
|
ObjectKey: "xyz/image.png",
|
||||||
ContentType: "image/png",
|
ContentType: "image/png",
|
||||||
FileName: "avatar.png",
|
FileName: "avatar.png",
|
||||||
|
|||||||
Reference in New Issue
Block a user