Don't send empty <Responses> tag

This commit is contained in:
Ludovic Marcotte
2014-10-16 09:08:50 -04:00
parent b2cab02d70
commit b4f7ec3708
+3 -1
View File
@@ -1037,7 +1037,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
inBuffer: s
processed: &processed];
if (processed)
// Windows phons don't empty Responses tags - such as: <Responses></Responses>.
// We onnly generate this tag when the command has generated a response.
if (processed && [s length])
[commandsBuffer appendFormat: @"<Responses>%@</Responses>", s];
else
[commandsBuffer appendString: s];