Browse Source

Check correct field to see if body should be empty

tags/v1.2.2
Paul Bonser 7 years ago
parent
commit
f82254f6d3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      request.go

+ 1
- 1
request.go 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


Loading…
Cancel
Save