Skip to content

Commit

Permalink
Merge pull request #1464 from jaykelin/master
Browse files Browse the repository at this point in the history
[Clickhouse] Change: use UTF-8 encoding for POST data
  • Loading branch information
arikfr authored Dec 12, 2016
2 parents 3cf6e31 + d4534d6 commit 47c54b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redash/query_runner/clickhouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _get_tables(self, schema):
return schema.values()

def _send_query(self, data, stream=False):
r = requests.post(self.configuration['url'], data=data, stream=stream, params={
r = requests.post(self.configuration['url'], data=data.encode("utf-8"), stream=stream, params={
'user': self.configuration['user'], 'password': self.configuration['password'],
'database': self.configuration['dbname']
})
Expand Down

0 comments on commit 47c54b3

Please sign in to comment.