Skip to content

Commit

Permalink
Merge pull request #1 from porech/fix/date-format
Browse files Browse the repository at this point in the history
Fix timeFormat for x-amz-date, two-digit day of month as per RFC 7231
  • Loading branch information
ale-rinaldi committed Oct 31, 2022
2 parents 829d8e5 + e8ac47e commit 41b5693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/v2signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var (
const (
signatureVersion = "2"
signatureMethod = "HmacSHA1"
timeFormat = "Mon, 2 Jan 2006 15:04:05 +0000"
timeFormat = "Mon, 02 Jan 2006 15:04:05 +0000"
)

var subresources = []string{
Expand Down

0 comments on commit 41b5693

Please sign in to comment.