fix
This commit is contained in:
parent
e8e02d9848
commit
84cf228b5d
@ -10,7 +10,6 @@ package httpclient
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -47,7 +46,7 @@ func NewHttpClient(reqConfig *define.Request, cacheInstance cache.ICache) (*Http
|
|||||||
}
|
}
|
||||||
// 初始化成功的 http code list
|
// 初始化成功的 http code list
|
||||||
if len(reqConfig.SuccessHttpCodeList) == 0 {
|
if len(reqConfig.SuccessHttpCodeList) == 0 {
|
||||||
reqConfig.SuccessHttpCodeList = []int64{}
|
reqConfig.SuccessHttpCodeList = []int{}
|
||||||
}
|
}
|
||||||
if len(reqConfig.Static) > 0 {
|
if len(reqConfig.Static) > 0 {
|
||||||
for loc, valMap := range reqConfig.Static {
|
for loc, valMap := range reqConfig.Static {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user