From f4be2b1badbb0e1c9dc1eef859c984905f44324c Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 28 Mar 2018 20:29:11 +0200 Subject: [PATCH] [lib.client.xhr] added 401 HTTP_STATUS as valid response --- webpack/lib/client/xhr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack/lib/client/xhr.js b/webpack/lib/client/xhr.js index 0ab9326..d6b8e49 100644 --- a/webpack/lib/client/xhr.js +++ b/webpack/lib/client/xhr.js @@ -59,7 +59,7 @@ export default class XHRClientDriver extends ClientDriver{ case 4: // Got response - if( this.xhr.status === 200 ){ + if( this.xhr.status === 200 || this.xhr.status === 401 ){ this.event.onreceive(this.xhr.responseText); this.event.onclose();