aboutsummaryrefslogtreecommitdiffstats
path: root/src/service/xhr.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/service/xhr.js')
-rw-r--r--src/service/xhr.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service/xhr.js b/src/service/xhr.js
index 6158b84f..b1b57a82 100644
--- a/src/service/xhr.js
+++ b/src/service/xhr.js
@@ -85,7 +85,7 @@ angularServiceInject('$xhr', function($browser, $error, $log){
response = fromJson(response, true);
}
}
- if (code == 200) {
+ if (200 <= code && code < 300) {
callback(code, response);
} else {
$error(