From efa15236ec7ad19f18bb77db93bc85b2387f2c54 Mon Sep 17 00:00:00 2001 From: haoxiwang Date: Fri, 28 Jun 2024 14:39:07 +0800 Subject: [PATCH] [fix]: set content-length after write signature --- request/signer.go | 1 + 1 file changed, 1 insertion(+) 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",