Even in thrift empty response should be '' and not None

This commit is contained in:
Honza Král
2014-02-11 01:00:01 +01:00
parent 59e76733de
commit 3e4ece48bd
+1 -1
View File
@@ -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 ''