Skip to content

Commit

Permalink
Update Eval.go
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow1ng authored Dec 19, 2024
1 parent 1bafa4d commit 59cc462
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion WebScan/lib/Eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 59cc462

Please sign in to comment.