Check correct field to see if body should be empty
This commit is contained in:
parent
63b210957a
commit
f82254f6d3
@ -82,7 +82,7 @@ func (req *Request) Request() (*http.Request, error) {
|
|||||||
postData = req.Body
|
postData = req.Body
|
||||||
} else if req.API == "_bulk" {
|
} else if req.API == "_bulk" {
|
||||||
postData = req.BulkData
|
postData = req.BulkData
|
||||||
} else if req.Body != nil {
|
} else if req.Query != nil {
|
||||||
b, err := json.Marshal(req.Query)
|
b, err := json.Marshal(req.Query)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user