Skip to content

Commit

Permalink
Fix httpjson panic for nil request body
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrc committed Jan 5, 2016
1 parent 2800755 commit a532d91
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion plugins/httpjson/httpjson.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ func (h *HttpJson) sendRequest(serverURL string) (string, error) {
if err != nil {
return "", err
}
defer req.Body.Close()

resp, err := h.client.MakeRequest(req)
if err != nil {
Expand Down

0 comments on commit a532d91

Please sign in to comment.