Skip to content

Commit

Permalink
Merge pull request #21 from rhnvrm/feat-do-support
Browse files Browse the repository at this point in the history
feat: add support for DigitalOcean
  • Loading branch information
rhnvrm authored Feb 22, 2022
2 parents fa36dbb + de82585 commit 1c0e12c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions simples3.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ func (s3 *S3) signRequest(req *http.Request) error {
}
}
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
// Signature Version 4 requests. It provides a hash of the
Expand Down
2 changes: 1 addition & 1 deletion simples3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func TestS3_FileUploadPostAndPut(t *testing.T) {
})

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) {
Expand Down

0 comments on commit 1c0e12c

Please sign in to comment.