Check correct field to see if body should be empty

This commit is contained in:
Paul Bonser 2017-02-02 15:19:08 -06:00
parent 63b210957a
commit f82254f6d3

View File

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