mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-25 06:26:34 +08:00
修复HTTP Client相关测试用例
This commit is contained in:
@@ -59,7 +59,7 @@ func (this *HTTPClientPool) Client(req *HTTPRequest,
|
||||
return nil, errors.New("origin addr should not be empty (originId:" + strconv.FormatInt(origin.Id, 10) + ")")
|
||||
}
|
||||
|
||||
if req.RawReq.URL == nil {
|
||||
if req == nil || req.RawReq == nil || req.RawReq.URL == nil {
|
||||
err = errors.New("invalid request url")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user