mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-13 12:52:44 +08:00
Update Eval.go
This commit is contained in:
parent
1bafa4d6f5
commit
59cc462467
@ -782,9 +782,12 @@ func getRespBody(oResp *http.Response) ([]byte, error) {
|
||||
defer reader.Close()
|
||||
|
||||
decompressed, err := io.ReadAll(reader)
|
||||
if err != nil && err != io.EOF {
|
||||
if err != nil && err != io.EOF && len(decompressed) == 0{
|
||||
return nil, err
|
||||
}
|
||||
if len(decompressed) == 0 && len(body) != 0{
|
||||
return body, nil
|
||||
}
|
||||
return decompressed, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user