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