Browse Source
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pull/6989/head
Chris Lu
3 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
weed/s3api/chunked_reader_v4.go
|
@ -465,7 +465,7 @@ func (cr *s3ChunkedReader) Read(buf []byte) (n int, err error) { |
|
|
// getChunkSignature - get chunk signature.
|
|
|
// getChunkSignature - get chunk signature.
|
|
|
func (cr *s3ChunkedReader) getChunkSignature(hashedChunk string) string { |
|
|
func (cr *s3ChunkedReader) getChunkSignature(hashedChunk string) string { |
|
|
// Calculate string to sign.
|
|
|
// Calculate string to sign.
|
|
|
stringToSign := signV4Algorithm + "-PAYLOAD" + "\n" + |
|
|
|
|
|
|
|
|
stringToSign := signV4ChunkedAlgorithm + "\n" + |
|
|
cr.seedDate.Format(iso8601Format) + "\n" + |
|
|
cr.seedDate.Format(iso8601Format) + "\n" + |
|
|
getScope(cr.seedDate, cr.region) + "\n" + |
|
|
getScope(cr.seedDate, cr.region) + "\n" + |
|
|
cr.seedSignature + "\n" + |
|
|
cr.seedSignature + "\n" + |
|
|