Merge pull request #21 from rhnvrm/feat-do-support

feat: add support for DigitalOcean
This commit is contained in:
Rohan Verma
2022-02-22 11:26:07 +05:30
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -309,6 +309,7 @@ func (s3 *S3) signRequest(req *http.Request) error {
} }
} }
req.Header.Set("Date", t.Format(amzDateISO8601TimeFormat)) req.Header.Set("Date", t.Format(amzDateISO8601TimeFormat))
req.Header.Set("X-Amz-Date", t.Format(amzDateISO8601TimeFormat))
// The x-amz-content-sha256 header is required for all AWS // The x-amz-content-sha256 header is required for all AWS
// Signature Version 4 requests. It provides a hash of the // Signature Version 4 requests. It provides a hash of the
+1 -1
View File
@@ -155,7 +155,7 @@ func TestS3_FileUploadPostAndPut(t *testing.T) {
}) })
if (err != nil) != tt.wantErr { if (err != nil) != tt.wantErr {
t.Errorf("S3.FileUpload() error = %v, wantErr %v", err, tt.wantErr) t.Errorf("S3.FileDetails() error = %v, wantErr %v", err, tt.wantErr)
} }
if len(dResp.AmzMeta) != len(tt.args.u.CustomMetadata) { if len(dResp.AmzMeta) != len(tt.args.u.CustomMetadata) {