diff --git a/elasticsearch/connection/thrift.py b/elasticsearch/connection/thrift.py index bb495719..d87e559e 100644 --- a/elasticsearch/connection/thrift.py +++ b/elasticsearch/connection/thrift.py @@ -78,5 +78,5 @@ class ThriftConnection(PoolingConnection): headers = {} if response.headers: headers = dict((k.lower(), v) for k, v in response.headers.items()) - return response.status, headers, response.body + return response.status, headers, response.body or ''