From 456913dc8b057cc44df753223e31800da62d8e98 Mon Sep 17 00:00:00 2001 From: James Lal Date: Fri, 10 May 2013 17:25:19 -0700 Subject: Rework http error validation so it can be reused r=kgrandon --- lib/caldav/http/oauth2.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/caldav/http/oauth2.js') 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 -- cgit