aboutsummaryrefslogtreecommitdiffstats
path: root/lib/caldav/http/oauth2.js
diff options
context:
space:
mode:
authorJames Lal <james@lightsofapollo.com>2013-05-10 17:33:00 -0700
committerJames Lal <james@lightsofapollo.com>2013-05-10 17:33:00 -0700
commit09d9ad3f92edec992bd1ab2e6a1c505f16bf22de (patch)
treed8c5b306760c9de5359aafe428753a4f3326c7a5 /lib/caldav/http/oauth2.js
parent9b5dd29c45ea08ff362198ffb984492df1ebadb1 (diff)
parent5f35b858c31d455894f3c700eade1d1ca0ca4d3a (diff)
downloadjsCalDAV-09d9ad3f92edec992bd1ab2e6a1c505f16bf22de.tar.gz
Merge pull request #17 from lightsofapollo/asset-http-status-checks
Rework http error validation so it can be reused r=kgrandon
Diffstat (limited to 'lib/caldav/http/oauth2.js')
-rw-r--r--lib/caldav/http/oauth2.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/caldav/http/oauth2.js b/lib/caldav/http/oauth2.js
index 75e6334..8b3b9e5 100644
--- a/lib/caldav/http/oauth2.js
+++ b/lib/caldav/http/oauth2.js
@@ -44,6 +44,8 @@
Oauth2.prototype = {
__proto__: XHR.prototype,
+ validateStatus: true,
+
_sendXHR: function(xhr) {
xhr.setRequestHeader(
'Authorization', 'Bearer ' + this.connection.oauth.access_token