Skip to content

Commit 3fbc359

Browse files
committed
fix: update http request in client.go
1 parent 5a0cac0 commit 3fbc359

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/detail/client.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,10 @@ func getAesKey() (key []byte, err error) {
179179
param.Set("clientId", GetClientId())
180180
param.Set("ossToken", config.Conf().Origin.Token)
181181
u.RawQuery = param.Encode()
182-
// 发送请求
183-
rep, err := http.Get(u.String())
182+
// // 发送请求
183+
// rep, err := common.HttpSaasClient.Get(u.String())
184+
req, err := http.NewRequest("GET", u.String(), nil)
185+
rep, err := common.HttpSaasClient.Do(req)
184186
if err != nil {
185187
logs.Error(err)
186188
return

0 commit comments

Comments
 (0)