CB-9562 Fixed incorrect headers handling on Android

This commit is contained in:
Snay
2015-08-26 23:56:06 +03:00
committed by Joe Bowser
parent ad6647120d
commit 2b31723708
+1 -1
View File
@@ -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);
}