mirror of
https://github.com/apache/cordova-android.git
synced 2026-05-11 00:00:05 +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:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user