mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 01:25:16 +00:00
Merge pull request #2267 from alexdrans/es_source_content_type_fix
Setting source_content_type on ES queries
This commit is contained in:
commit
6f7e95d419
@ -420,7 +420,7 @@ class ElasticSearch(BaseElasticSearch):
|
||||
if error:
|
||||
return None, error
|
||||
|
||||
params = {"source": json.dumps(query_dict)}
|
||||
params = {"source": json.dumps(query_dict), "source_content_type": "application/json"}
|
||||
logger.debug("Using URL: %s", url)
|
||||
logger.debug("Using params : %s", params)
|
||||
r = requests.get(url, params=params, auth=self.auth)
|
||||
|
Loading…
Reference in New Issue
Block a user