diff --git a/request/signer.go b/request/signer.go index 9fb6921..7dff05d 100644 --- a/request/signer.go +++ b/request/signer.go @@ -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",