mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2026-06-05 00:00:35 +08:00
CB-9562 Fixed incorrect headers handling on Android
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user