Skip to content

Commit

Permalink
Small fix on panic message
Browse files Browse the repository at this point in the history
j3ssie committed Nov 5, 2020
1 parent 86e907e commit 2d75ae3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sender/sender.go
Original file line number Diff line number Diff line change
@@ -209,10 +209,10 @@ func JustSend(options libs.Options, req libs.Request) (res libs.Response, err er
return res, nil
}

if err != nil || resp == nil {
if err != nil {
utils.ErrorF("%v %v", url, err)
if string(resp.Body()) != "" {
return ParseResponse(*resp), err
if strings.Contains(err.Error(), "EOF") && resp.StatusCode() != 0 {
return ParseResponse(*resp), nil
}
return libs.Response{}, err
}

0 comments on commit 2d75ae3

Please sign in to comment.