mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix: fix es ssl
This commit is contained in:
@@ -106,7 +106,7 @@ def get_es_data_by_http(conf: DatasourceConf, sql: str):
|
||||
"Authorization": f"Basic {encoded_credentials}"
|
||||
}
|
||||
|
||||
response = requests.post(host, data=json.dumps({"query": sql}), headers=headers)
|
||||
response = requests.post(host, data=json.dumps({"query": sql}), headers=headers, verify=False)
|
||||
|
||||
# print(response.json())
|
||||
res = response.json()
|
||||
|
||||
Reference in New Issue
Block a user