Skip to content

Commit

Permalink
fix: aws elasticsearch typo (#6899)
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Lee <yankeeguyu@gmail.com>
  • Loading branch information
AndrewChubatiuk and gaecoli authored Apr 17, 2024
1 parent 3dd855a commit 2ffeecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redash/query_runner/elasticsearch2.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, *args, **kwargs):
self.syntax = "json"

def get_response(self, url, auth=None, http_method="get", **kwargs):
url = "{}{}".format(self.configuration["url"], url)
url = "{}{}".format(self.configuration["server"], url)
headers = kwargs.pop("headers", {})
headers["Accept"] = "application/json"
return super().get_response(url, auth, http_method, headers=headers, **kwargs)
Expand Down

0 comments on commit 2ffeecb

Please sign in to comment.