liuxiaolong
2020-08-04 eef73867db718d4a6b706d591508d3e22c9949df
extend/util/requtil.go
@@ -3,14 +3,15 @@
import (
   "bytes"
   "encoding/json"
   "fmt"
   "github.com/ajg/form"
   "golang.org/x/tools/go/ssa/interp/testdata/src/fmt"
   "io"
   "io/ioutil"
   "net/http"
   "os"
   "strings"
   "github.com/dustin/go-humanize"
   "time"
)
const (
@@ -63,7 +64,9 @@
         request.Header.Add(key, val)
      }
   }
   client := &http.Client{}
   client := &http.Client{
      Timeout: time.Second * 5,
   }
   resp, err := client.Do(request)
   if err != nil {
      return resultBytes, err