[lib.client.xhr] added 401 HTTP_STATUS as valid response

This commit is contained in:
xdrm-brackets 2018-03-28 20:29:11 +02:00
parent 2a2637251d
commit f4be2b1bad
1 changed files with 1 additions and 1 deletions

View File

@ -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();