From 7f1ec4a4d22ffdfe4ba05382e1c8bd872defee4d Mon Sep 17 00:00:00 2001 From: Vladimir Enchev Date: Tue, 13 May 2014 09:47:34 +0300 Subject: [PATCH] http client fixed to use new Image methods --- Tests/http_tests.ts | 2 +- http/http_request.ios.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/http_tests.ts b/Tests/http_tests.ts index 80f81fb4f..2d1322d01 100644 --- a/Tests/http_tests.ts +++ b/Tests/http_tests.ts @@ -41,7 +41,7 @@ export var test_getImage = function () { }; export var test_getImage_fail = function () { - http.getImage("htadvtp://www.google.com/images/errors/logo_sm_2.png").fail(function (e) { + http.getImage("htadvtp://www.google.com/images/errors/logo_sm_2.pngm").fail(function (e) { TKUnit.assert(e instanceof Error, "Result from getImage().fail() should be Error!"); }); }; diff --git a/http/http_request.ios.ts b/http/http_request.ios.ts index cfdd8c9c8..ace103010 100644 --- a/http/http_request.ios.ts +++ b/http/http_request.ios.ts @@ -56,7 +56,7 @@ export function request(options: http.HttpRequestOptions): promises.Promise { return NSDataToString(data); }, toJSON: () => { return JSON.parse(NSDataToString(data)); }, - toImage: () => { return require("Image/image").Image.imageFromData(data); } + toImage: () => { return require("Image/image").fromData(data); } }, statusCode: response.statusCode(), headers: headers