-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ios): instead of ignoring call give error in case of nil url pass…
…ed to Ti.Network.HTTPClient (#11513) * fix(ios): allow nil url to paas to request * test : added test case for invalid url Co-authored-by: Christopher Williams <chris.a.williams@gmail.com> Co-authored-by: ssekhri <ssekhri@axway.com>
- Loading branch information
1 parent
d7f863b
commit 7630868
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
Binary file modified
BIN
+0 Bytes
(100%)
iphone/TitaniumKit/TitaniumKit/Libraries/APSAnalytics/libAPSAnalytics.a
Binary file not shown.
Binary file modified
BIN
-12.5 KB
(99%)
iphone/TitaniumKit/TitaniumKit/Libraries/APSHTTPClient/libAPSHTTPClient.a
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Appcelerator Titanium Mobile | ||
* Copyright (c) 2011-Present by Appcelerator, Inc. All Rights Reserved. | ||
* Licensed under the terms of the Apache Public License | ||
* Please see the LICENSE included with this distribution for details. | ||
*/ | ||
/* eslint-env mocha */ | ||
/* eslint no-unused-expressions: "off" */ | ||
'use strict'; | ||
var should = require('./utilities/assertions'); | ||
|
||
describe('Titanium.Network.HTTPClient', function () { | ||
this.timeout(6e4); | ||
|
||
it('TIMOB-27767 - trigger error callback for invalid URL', function (finish) { | ||
var xhr = Ti.Network.createHTTPClient(); | ||
xhr.setTimeout(6e4); | ||
|
||
xhr.onerror = function (e) { | ||
finish(); | ||
}; | ||
|
||
xhr.open('GET', 'https://www.google .com/'); // URL with space | ||
xhr.send(); | ||
}); | ||
}); |