CB-2333: Probably should be re-factored as a do..while, but need to handle when there is no EOL char in buffer

This commit is contained in:
Joe Bowser 2013-02-22 11:58:37 -08:00
parent 06947cc453
commit e791f29ce1

View File

@ -547,8 +547,9 @@ public class FileTransfer extends CordovaPlugin {
while(line != null)
{
bodyBuilder.append(line);
bodyBuilder.append('\n');
line = reader.readLine();
if(line != null)
bodyBuilder.append('\n');
}
body = bodyBuilder.toString();
}