diff --git a/restclient/client.go b/restclient/client.go index 114482c..ae69486 100644 --- a/restclient/client.go +++ b/restclient/client.go @@ -15,7 +15,8 @@ func SendRequest(url string, method string, headers map[string]string, body inte var contentType string switch v := body.(type) { - case nil: // Leave nil for GET requests + case nil: + reqBody = bytes.NewBuffer([]byte("")) case map[string]string: reqBody = &bytes.Buffer{} writer := multipart.NewWriter(reqBody)