diff --git a/iphone/TitaniumKit/TitaniumKit/Libraries/APSAnalytics/libAPSAnalytics.a b/iphone/TitaniumKit/TitaniumKit/Libraries/APSAnalytics/libAPSAnalytics.a index fbb8294c4fe..674dce9b786 100644 Binary files a/iphone/TitaniumKit/TitaniumKit/Libraries/APSAnalytics/libAPSAnalytics.a and b/iphone/TitaniumKit/TitaniumKit/Libraries/APSAnalytics/libAPSAnalytics.a differ diff --git a/iphone/TitaniumKit/TitaniumKit/Libraries/APSHTTPClient/libAPSHTTPClient.a b/iphone/TitaniumKit/TitaniumKit/Libraries/APSHTTPClient/libAPSHTTPClient.a index a5f805844fc..ac6fbf50e38 100644 Binary files a/iphone/TitaniumKit/TitaniumKit/Libraries/APSHTTPClient/libAPSHTTPClient.a and b/iphone/TitaniumKit/TitaniumKit/Libraries/APSHTTPClient/libAPSHTTPClient.a differ diff --git a/tests/Resources/ti.network.httpclient.addontest.js b/tests/Resources/ti.network.httpclient.addontest.js new file mode 100644 index 00000000000..43154dcb386 --- /dev/null +++ b/tests/Resources/ti.network.httpclient.addontest.js @@ -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(); + }); +});