mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
http tests updated
This commit is contained in:
@ -16,9 +16,7 @@ export function request(options: http.HttpRequestOptions): promises.Promise<http
|
||||
var urlRequest = Foundation.NSMutableURLRequest.requestWithURL(
|
||||
Foundation.NSURL.URLWithString(options.url));
|
||||
|
||||
if (options.method) {
|
||||
urlRequest.setHTTPMethod(options.method);
|
||||
}
|
||||
urlRequest.setHTTPMethod(typeof options.method !== "undefined" ? options.method : "GET");
|
||||
|
||||
if (options.headers) {
|
||||
for (var header in options.headers) {
|
||||
|
Reference in New Issue
Block a user