Skip to content

Commit

Permalink
fix: update http request in client.go
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperChen-CC committed May 30, 2024
1 parent 5a0cac0 commit 3fbc359
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/detail/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,10 @@ func getAesKey() (key []byte, err error) {
param.Set("clientId", GetClientId())
param.Set("ossToken", config.Conf().Origin.Token)
u.RawQuery = param.Encode()
// 发送请求
rep, err := http.Get(u.String())
// // 发送请求
// rep, err := common.HttpSaasClient.Get(u.String())
req, err := http.NewRequest("GET", u.String(), nil)
rep, err := common.HttpSaasClient.Do(req)
if err != nil {
logs.Error(err)
return
Expand Down

0 comments on commit 3fbc359

Please sign in to comment.