cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject android commit: CB-2333: Probably should be re-factored as a do..while, but need to handle when there is no EOL char in buffer
Date Fri, 22 Feb 2013 19:58:50 GMT
Updated Branches:
  refs/heads/master 06947cc45 -> e791f29ce


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


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/e791f29c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/e791f29c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/e791f29c

Branch: refs/heads/master
Commit: e791f29ce18486b4d475e397fef5b0fbab51ec5a
Parents: 06947cc
Author: Joe Bowser <bowserj@apache.org>
Authored: Fri Feb 22 11:58:37 2013 -0800
Committer: Joe Bowser <bowserj@apache.org>
Committed: Fri Feb 22 11:58:37 2013 -0800

----------------------------------------------------------------------
 framework/src/org/apache/cordova/FileTransfer.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/e791f29c/framework/src/org/apache/cordova/FileTransfer.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/FileTransfer.java b/framework/src/org/apache/cordova/FileTransfer.java
index 58c6244..edb1b6d 100644
--- a/framework/src/org/apache/cordova/FileTransfer.java
+++ b/framework/src/org/apache/cordova/FileTransfer.java
@@ -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();
                     }


Mime
View raw message