Skip to content

Commit

Permalink
word
Browse files Browse the repository at this point in the history
  • Loading branch information
tanfarming committed Feb 9, 2024
1 parent 2c34bbe commit 0f9929f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ita/internal/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"hash/fnv"
"image"
"io"
"io/ioutil"
"math"
"net/http"
"os"
Expand Down Expand Up @@ -166,10 +165,9 @@ func ret_rewrite_assets(oldDomain, newDomain string) error {

resp, err := _httpClient.Do(retCcuReq)

if err != nil {
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println("resp", string(body))
}
body, _ := io.ReadAll(resp.Body)
Logger.Sugar().Debugf("resp %v", string(body))

return err
}

Expand Down

0 comments on commit 0f9929f

Please sign in to comment.