aboutsummaryrefslogtreecommitdiffstats
path: root/lib/caldav/http/oauth2.js
diff options
context:
space:
mode:
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