diff --git a/request.go b/request.go index 00ca68f..9886865 100644 --- a/request.go +++ b/request.go @@ -82,7 +82,7 @@ func (req *Request) Request() (*http.Request, error) { postData = req.Body } else if req.API == "_bulk" { postData = req.BulkData - } else if req.Body != nil { + } else if req.Query != nil { b, err := json.Marshal(req.Query) if err != nil { return nil, err