Fix influx stress point writer

It previously used the content type `application/x-www-form-urlencoded`.
When the HTTP write handler was changed to check an HTTP form parameter
in d96eef4, the body for any POST requests with that content type would
result in an empty body.
pull/6085/head
Jonathan A. Sternberg 2016-03-21 17:34:41 -04:00
parent b12cf04a73
commit ddf655c222
1 changed files with 1 additions and 1 deletions

View File

@ -365,7 +365,7 @@ func post(url string, datatype string, data io.Reader) (*http.Response, error) {
func (c *BasicClient) send(b []byte) (response, error) {
t := NewTimer()
resp, err := post(c.Addresses[c.addrId], "application/x-www-form-urlencoded", bytes.NewBuffer(b))
resp, err := post(c.Addresses[c.addrId], "", bytes.NewBuffer(b))
t.StopTimer()
if err != nil {
return response{Timer: t}, err