Skip to content

Commit e8e8aca

Browse files
authored
fix: incorrect set x-amz-date for signV4 (#2096)
1 parent ed6737b commit e8e8aca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/signer/request-signature-v4.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ func signV4(req http.Request, accessKeyID, secretAccessKey, sessionToken, locati
333333
if len(trailer) > 0 {
334334
// Use custom chunked encoding.
335335
req.Trailer = trailer
336-
return StreamingUnsignedV4(&req, sessionToken, req.ContentLength, time.Now().UTC())
336+
return StreamingUnsignedV4(&req, sessionToken, req.ContentLength, t)
337337
}
338338
return &req
339339
}

0 commit comments

Comments
 (0)