aboutsummaryrefslogtreecommitdiffstats
path: root/src/service/xhr.js
diff options
context:
space:
mode:
authorMisko Hevery2011-03-09 21:12:40 -0800
committerMisko Hevery2011-03-11 14:16:52 -0800
commit5343deb3da0e667599fe66d8efa3566b4e337a24 (patch)
treea375202db226a47beda6bfad4b6ee5096a1171e1 /src/service/xhr.js
parent26bad2bf878e54fa78ff26518d1275a7e0b5b39c (diff)
downloadangular.js-5343deb3da0e667599fe66d8efa3566b4e337a24.tar.bz2
Consider all 2xx responses as OK, not just 200
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(