Skip to content

Commit 59e7673

Browse files
committed
Lowercase all thrift headers for compatibility with http
1 parent 47b8dc9 commit 59e7673

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

elasticsearch/connection/thrift.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,8 @@ def perform_request(self, method, url, params=None, body=None, timeout=None, ign
7575
self.log_request_success(method, url, url, body, response.status,
7676
response.body, duration)
7777

78-
return response.status, response.headers or {}, response.body
78+
headers = {}
79+
if response.headers:
80+
headers = dict((k.lower(), v) for k, v in response.headers.items())
81+
return response.status, headers, response.body
7982

0 commit comments

Comments
 (0)