diff --git a/httpclient/client.go b/httpclient/client.go index 3b7a374..76c396e 100644 --- a/httpclient/client.go +++ b/httpclient/client.go @@ -10,7 +10,6 @@ package httpclient import ( "fmt" "net" - "net/http" "strings" "time" @@ -47,7 +46,7 @@ func NewHttpClient(reqConfig *define.Request, cacheInstance cache.ICache) (*Http } // 初始化成功的 http code list if len(reqConfig.SuccessHttpCodeList) == 0 { - reqConfig.SuccessHttpCodeList = []int64{} + reqConfig.SuccessHttpCodeList = []int{} } if len(reqConfig.Static) > 0 { for loc, valMap := range reqConfig.Static {