Fixed content-type header in output plugin OpenTSDB (#2663)
This commit is contained in:
parent
1876441ed7
commit
1e95e53375
|
@ -134,7 +134,7 @@ func (o *openTSDBHttp) flush() error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("Error when building request: %s", err.Error())
|
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")
|
req.Header.Set("Content-Encoding", "gzip")
|
||||||
|
|
||||||
if o.Debug {
|
if o.Debug {
|
||||||
|
|
Loading…
Reference in New Issue