mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-07 23:03:11 +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)
|
while(line != null)
|
||||||
{
|
{
|
||||||
bodyBuilder.append(line);
|
bodyBuilder.append(line);
|
||||||
bodyBuilder.append('\n');
|
|
||||||
line = reader.readLine();
|
line = reader.readLine();
|
||||||
|
if(line != null)
|
||||||
|
bodyBuilder.append('\n');
|
||||||
}
|
}
|
||||||
body = bodyBuilder.toString();
|
body = bodyBuilder.toString();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user