Skip to content

Commit

Permalink
Merge pull request #41 from khlystov/master
Browse files Browse the repository at this point in the history
Fix for new CH version
  • Loading branch information
nikepan authored Apr 15, 2021
2 parents 82290fd + 45901b2 commit 77db74f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clickhouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77db74f

Please sign in to comment.