From 45901b2b8800009d8fa15c5525defd07d1dbbb16 Mon Sep 17 00:00:00 2001 From: Max Khlystov Date: Thu, 15 Apr 2021 11:13:55 +0300 Subject: [PATCH] Update clickhouse.go --- clickhouse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clickhouse.go b/clickhouse.go index cba8053..0625a0e 100644 --- a/clickhouse.go +++ b/clickhouse.go @@ -196,7 +196,7 @@ func (srv *ClickhouseServer) SendQuery(r *ClickhouseRequest) (response string, s if r.isInsert { log.Printf("INFO: sending %+v rows to %+v of %+v\n", r.Count, srv.URL, r.Query) } - resp, err := srv.Client.Post(url, "", strings.NewReader(r.Content)) + resp, err := srv.Client.Post(url, "text/plain", strings.NewReader(r.Content)) if err != nil { srv.Bad = true return err.Error(), http.StatusBadGateway, ErrServerIsDown