mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
small fix for ios http module
This commit is contained in:
@ -31,7 +31,7 @@ export function request(options: http.HttpRequestOptions): promises.Promise<http
|
||||
if (typeof options.content == "string") {
|
||||
urlRequest.setHTTPBody(Foundation.NSString.initWithString(options.content).dataUsingEncoding(4));
|
||||
}
|
||||
else {
|
||||
else if (typeof options.content !== "undefined") {
|
||||
urlRequest.setHTTPBody(options.content);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user