mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
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:
parent
06947cc453
commit
e791f29ce1
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user