File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
tencentcloud/connectivity Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
10
10
"time"
11
11
)
12
12
13
- const ReqClient = "Terraform-v1.24 .1"
13
+ const ReqClient = "Terraform-v1.33 .1"
14
14
15
15
type LogRoundTripper struct {
16
16
}
@@ -27,19 +27,20 @@ func (me *LogRoundTripper) RoundTrip(request *http.Request) (response *http.Resp
27
27
if errRet != nil {
28
28
return
29
29
}
30
-
30
+ var headName = "X-TC-Action"
31
31
request .Header .Set ("X-TC-RequestClient" , ReqClient )
32
- inBytes = []byte (fmt .Sprintf ("%s, request: " , request .Header ["X-TC-Action" ]))
32
+ inBytes = []byte (fmt .Sprintf ("%s, request: " , request .Header [headName ]))
33
33
requestBody , errRet := ioutil .ReadAll (bodyReader )
34
34
if errRet != nil {
35
35
return
36
36
}
37
37
inBytes = append (inBytes , requestBody ... )
38
38
39
+ headName = "X-TC-Region"
39
40
appendMessage := []byte (fmt .Sprintf (
40
41
", (host %+v, region:%+v)" ,
41
42
request .Header ["Host" ],
42
- request .Header ["X-TC-Region" ],
43
+ request .Header [headName ],
43
44
))
44
45
45
46
inBytes = append (inBytes , appendMessage ... )
You can’t perform that action at this time.
0 commit comments