Don't send empty <Responses> tag

pull/64/head
Ludovic Marcotte 2014-10-16 09:08:50 -04:00
parent b2cab02d70
commit b4f7ec3708
1 changed files with 3 additions and 1 deletions

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];