Repository: cordova-plugin-file-transfer
Updated Branches:
  refs/heads/master ad6647120 -> 2b3172370


CB-9562 Fixed incorrect headers handling on Android


Project: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/2b317237
Tree: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/2b317237
Diff: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/2b317237

Branch: refs/heads/master
Commit: 2b31723708256c08c5209308eb6ccfb03e2ab990
Parents: ad66471
Author: Snay <m...@snay.me>
Authored: Wed Aug 26 23:56:06 2015 +0300
Committer: Joe Bowser <bows...@apache.org>
Committed: Wed Aug 26 16:35:09 2015 -0700

----------------------------------------------------------------------
 src/android/FileTransfer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/2b317237/src/android/FileTransfer.java
----------------------------------------------------------------------
diff --git a/src/android/FileTransfer.java b/src/android/FileTransfer.java
index 4baefe7..2aa4008 100644
--- a/src/android/FileTransfer.java
+++ b/src/android/FileTransfer.java
@@ -219,7 +219,7 @@ public class FileTransfer extends CordovaPlugin {
                       */
 
                     String headerValue = headers.getString(headerKey);
-                    String finalValue = headerValue.replaceAll("\\s+", 
"").replaceAll("\\n","").replaceAll("[^\\x20-\\x7E]+", " ");;
+                    String finalValue = headerValue.replaceAll("\\s+", " 
").replaceAll("\\n"," ").replaceAll("[^\\x20-\\x7E]+", " ");
                     headerValues.put(finalValue);
                 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to