Skip to content

Commit

Permalink
[fix]: set content-length after write signature
Browse files Browse the repository at this point in the history
  • Loading branch information
haoxiwang committed Jun 28, 2024
1 parent 7fa0a27 commit efa1523
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions request/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func (is *Signer) WriteSignature(request *http.Request) error {
}
request.URL = newRequest.URL
request.Body = newRequest.Body
request.ContentLength = newRequest.ContentLength

logger.Info(fmt.Sprintf(
"Signed QingCloud request: [%d] %s",
Expand Down

0 comments on commit efa1523

Please sign in to comment.