Fix httpjson panic for nil request body

This commit is contained in:
Cameron Sparr 2015-12-21 13:42:32 -08:00
parent 2e764cb22d
commit 4bd5b6a4d6
1 changed files with 0 additions and 1 deletions

View File

@ -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 {