Fix httpjson panic for nil request body
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user