Skip to content

Commit

Permalink
fix: s3 signature on strict clients (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
fenos authored Aug 1, 2024
1 parent b548ed1 commit 0636edd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/storage/protocols/s3/signature-v4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,12 @@ export class SignatureV4 {
if (header === 'host') {
return this.getHostHeader(request)
}

if (header === 'content-length') {
const headerValue = this.getHeader(request, header) ?? '0'
return `${header}:${headerValue}`
}

return `${header}:${this.getHeader(request, header)}`
})
.join('\n') + '\n'
Expand Down

0 comments on commit 0636edd

Please sign in to comment.