summaryrefslogtreecommitdiff
path: root/javascript/srp.js
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/srp.js')
-rw-r--r--javascript/srp.js2
1 files changed, 1 insertions, 1 deletions
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) {