perf(http): remove IE special status handling (#44354)

revert the condition as dev only

PR Close #44354
This commit is contained in:
Ramzan
2022-01-07 04:58:17 +01:00
committed by Dylan Hunn
parent 99171522cb
commit 28393031b1
2 changed files with 1 additions and 13 deletions
+1 -3
View File
@@ -112,8 +112,6 @@ export class HttpXhrBackend implements HttpBackend {
return headerResponse;
}
// Read status and normalize an IE9 bug (https://bugs.jquery.com/ticket/1450).
const status: number = xhr.status === 1223 ? HttpStatusCode.NoContent : xhr.status;
const statusText = xhr.statusText || 'OK';
// Parse headers from XMLHttpRequest - this step is lazy.
@@ -124,7 +122,7 @@ export class HttpXhrBackend implements HttpBackend {
const url = getResponseUrl(xhr) || req.url;
// Construct the HttpHeaderResponse and memoize it.
headerResponse = new HttpHeaderResponse({headers, status, statusText, url});
headerResponse = new HttpHeaderResponse({headers, status: xhr.status, statusText, url});
return headerResponse;
};