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:
Vladimir Enchev
2015-12-10 14:42:04 +02:00
parent 06c164c747
commit 66ec3f2f20
3 changed files with 5 additions and 3 deletions

View File

@@ -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;
}