Skip to content

Commit e6cb32f

Browse files
committed
add
1 parent 2cadbe3 commit e6cb32f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tencentcloud/connectivity/transport.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,18 @@ func (me *LogRoundTripper) RoundTrip(request *http.Request) (response *http.Resp
5555
request.Header.Set(ENV_TESTING_ROUTE_HEADER_KEY, routeUserID)
5656
}
5757

58+
var reqClientFormat = ReqClient
5859
if me.InstanceId != "" {
59-
ReqClient = fmt.Sprintf("%s,id=%s", ReqClient, me.InstanceId)
60+
reqClientFormat = fmt.Sprintf("%s,id=%s", ReqClient, me.InstanceId)
6061
}
6162

62-
request.Header.Set("X-TC-RequestClient", ReqClient)
63+
fmt.Println(11111111)
64+
fmt.Println(11111111)
65+
fmt.Println(reqClientFormat)
66+
fmt.Println(11111111)
67+
fmt.Println(11111111)
68+
69+
request.Header.Set("X-TC-RequestClient", reqClientFormat)
6370
inBytes = []byte(fmt.Sprintf("%s, request: ", request.Header[headName]))
6471
requestBody, errRet := ioutil.ReadAll(bodyReader)
6572
if errRet != nil {

0 commit comments

Comments
 (0)