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

@ -20,7 +20,7 @@ export function request(options: http.HttpRequestOptions): Promise<http.HttpResp
sessionConfig, null, queue);
var urlRequest = NSMutableURLRequest.requestWithURL(
NSURL.URLWithString(options.url));
NSURL.URLWithString(options.url.replace("%", "%25")));
urlRequest.HTTPMethod = types.isDefined(options.method) ? options.method : GET;