mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
url with % fixed
It seems that this url is a special case since url encoding techniques failed for both ios and android. For ios: stringByAddingPercentEscapesUsingEncoding stringByAddingPercentEncodingWithAllowedCharacters For android: java.net.URLEncoder
This commit is contained in:
@@ -75,7 +75,8 @@ function buildJavaOptions(options: http.HttpRequestOptions) {
|
||||
|
||||
var javaOptions = new com.tns.Async.Http.RequestOptions();
|
||||
|
||||
javaOptions.url = options.url;
|
||||
javaOptions.url = options.url.replace("%", "%25");
|
||||
|
||||
if (types.isString(options.method)) {
|
||||
javaOptions.method = options.method;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user