fix(http): avoid abort a request when fetch operation is completed (#37367)
`abort` method is calling, even if fetch operation is completed Fixes https://github.com/angular/angular/issues/36537 PR Close #37367
This commit is contained in:

committed by
Andrew Kushnir

parent
ef1fb6dee4
commit
8a74508130
@ -339,7 +339,9 @@ export class HttpXhrBackend implements HttpBackend {
|
||||
}
|
||||
|
||||
// Finally, abort the in-flight request.
|
||||
xhr.abort();
|
||||
if (xhr.readyState !== xhr.DONE) {
|
||||
xhr.abort();
|
||||
}
|
||||
};
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user