Skip to content

Commit

Permalink
fixed close
Browse files Browse the repository at this point in the history
  • Loading branch information
malong committed Jun 14, 2018
1 parent 72e4c8a commit f211787
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ func buildHTTPRequest(method string, url string, a *Args) (req *http.Request, er
if a.BasicAuth.Username != "" {
req.SetBasicAuth(a.BasicAuth.Username, a.BasicAuth.Password)
}
if a.Close == true {
req.Close = true
}
return
}

Expand Down

0 comments on commit f211787

Please sign in to comment.