Skip to content
Snippets Groups Projects
Commit 4bd5b6a4 authored by Cameron Sparr's avatar Cameron Sparr
Browse files

Fix httpjson panic for nil request body

parent 2e764cb2
No related branches found
No related tags found
No related merge requests found
...@@ -182,7 +182,6 @@ func (h *HttpJson) sendRequest(serverURL string) (string, error) { ...@@ -182,7 +182,6 @@ func (h *HttpJson) sendRequest(serverURL string) (string, error) {
if err != nil { if err != nil {
return "", err return "", err
} }
defer req.Body.Close()
resp, err := h.client.MakeRequest(req) resp, err := h.client.MakeRequest(req)
if err != nil { if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment