From 516d5dc734155417e8e3beb8436e83ea101105b0 Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 2 Jul 2012 14:41:33 +0200 Subject: parsing JSON responses tested and fixed --- javascript/srp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'javascript/srp.js') diff --git a/javascript/srp.js b/javascript/srp.js index 7bb6e27..b84786e 100644 --- a/javascript/srp.js +++ b/javascript/srp.js @@ -140,7 +140,7 @@ function SRP() function responseIsJSON() { return (xhr.responseType == 'json') || - (xhr.responseHeaders["Content-Type"].indexOf('application/json') > 0) + (xhr.responseHeaders["Content-Type"].indexOf('application/json') >= 0) } function parseXML(xml) { -- cgit v1.2.3