This commit is contained in:
白茶清欢 2025-04-17 18:39:42 +08:00
parent e8e02d9848
commit 84cf228b5d

View File

@ -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 {