From 3e4ece48bd7a8b58341bac40b8a2916895e2e994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Tue, 11 Feb 2014 01:00:01 +0100 Subject: [PATCH] Even in thrift empty response should be '' and not None --- elasticsearch/connection/thrift.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ''