Update Eval.go

This commit is contained in:
影舞者 2024-12-19 22:59:28 +08:00 committed by GitHub
parent 01ae22119d
commit 1bafa4d6f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -769,7 +769,7 @@ func ParseResponse(oResp *http.Response) (*Response, error) {
func getRespBody(oResp *http.Response) ([]byte, error) {
// 读取原始响应体
body, err := io.ReadAll(oResp.Body)
if err != nil && err != io.EOF {
if err != nil && err != io.EOF && len(body) == 0 {
return nil, err
}