[lib.client.xhr] added 401 HTTP_STATUS as valid response
This commit is contained in:
parent
2a2637251d
commit
f4be2b1bad
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue