From 9388fff1f7366da864c1331ec3f7810a7a308282 Mon Sep 17 00:00:00 2001 From: Chris Goffinet Date: Wed, 12 Apr 2017 20:40:10 -0400 Subject: [PATCH] Fixed content-type header in output plugin OpenTSDB (#2663) --- plugins/outputs/opentsdb/opentsdb_http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/outputs/opentsdb/opentsdb_http.go b/plugins/outputs/opentsdb/opentsdb_http.go index 912ca670a..e74e74f03 100644 --- a/plugins/outputs/opentsdb/opentsdb_http.go +++ b/plugins/outputs/opentsdb/opentsdb_http.go @@ -134,7 +134,7 @@ func (o *openTSDBHttp) flush() error { if err != nil { return fmt.Errorf("Error when building request: %s", err.Error()) } - req.Header.Set("Content-Type", "applicaton/json") + req.Header.Set("Content-Type", "application/json") req.Header.Set("Content-Encoding", "gzip") if o.Debug {