Skip to content

Commit

Permalink
Merge pull request #203 from wanghaoxi3000/new-fix
Browse files Browse the repository at this point in the history
[fix]: set content-length after write signature
cygnushan authored Jun 28, 2024
2 parents 7fa0a27 + efa1523 commit 4016952
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
@@ -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",

0 comments on commit 4016952

Please sign in to comment.