Merge pull request #1775 from QuantumNous/alpha

Alpha
This commit is contained in:
Calcium-Ion
2025-09-11 18:47:35 +08:00
committed by GitHub
15 changed files with 110 additions and 39 deletions
+1 -2
View File
@@ -264,9 +264,8 @@ func doRequest(c *gin.Context, req *http.Request, info *common.RelayInfo) (*http
}
resp, err := client.Do(req)
if err != nil {
return nil, err
return nil, types.NewError(err, types.ErrorCodeDoRequestFailed, types.ErrOptionWithHideErrMsg("upstream error: do request failed"))
}
if resp == nil {
return nil, errors.New("resp is nil")