From ddf655c222a1ed689d745dea51011b2db2ba6524 Mon Sep 17 00:00:00 2001 From: "Jonathan A. Sternberg" Date: Mon, 21 Mar 2016 17:34:41 -0400 Subject: [PATCH] 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. --- stress/basic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stress/basic.go b/stress/basic.go index 9ffe104073..9762d47a5e 100644 --- a/stress/basic.go +++ b/stress/basic.go @@ -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