cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject cordova-plugin-file-transfer git commit: CB-9562 Fixed incorrect headers handling on Android
Date Wed, 26 Aug 2015 23:37:29 GMT
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 <me@snay.me>
Authored: Wed Aug 26 23:56:06 2015 +0300
Committer: Joe Bowser <bowserj@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-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message