Fix httpjson panic for nil request body
This commit is contained in:
parent
2e764cb22d
commit
4bd5b6a4d6
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue