Skip to content
This repository has been archived by the owner on Aug 4, 2024. It is now read-only.

Commit

Permalink
Fixed Error SIGSEGV
Browse files Browse the repository at this point in the history
  • Loading branch information
KathanP19 committed Apr 7, 2021
1 parent ca11974 commit 0224788
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ func requestfunc(u string) (resp *http.Response, body string, errs []error) {
fmt.Println(string(requestDump))
}
resp, err = client.Do(req)
if err != nil {
return
}
bodyBytes, err := ioutil.ReadAll(resp.Body)
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit 0224788

Please sign in to comment.