elasticsearch/elasticsearch-net — pull request #572 by danp60 (2014-04-09 01:07:55+00:00)
Title: Correctly handle empty response bodies in Thrift

The thrift representation of an empty array is the same as null, so when the body is empty (such as with a HeadSync), the current implementation of Execute will throw an exception because MemoryStream cannot handle nulls. Instead return an empty byte array. Also add integration test for this case.