From 7fd0d2e2513636311cf9c9be4987e49722d8ef81 Mon Sep 17 00:00:00 2001 From: Vladimir Enchev Date: Tue, 15 Apr 2014 17:29:03 +0300 Subject: [PATCH] TODO added --- net/http_client.android.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/net/http_client.android.ts b/net/http_client.android.ts index c330784ae..6b4baa803 100644 --- a/net/http_client.android.ts +++ b/net/http_client.android.ts @@ -38,6 +38,7 @@ export class http { return d.promise(); } + // TODO: Accept: application/json header for JSON calls and check the response for Image not url! private static get(url: string, successCallback: (result: any) => void, errorCallback?: (e: Error) => void) { try { var isImage = url.match(/\.(jpeg|jpg|gif|png)$/) != null;