From 94b8612e4eb39100b723ea4457f60d9d2d1e5be6 Mon Sep 17 00:00:00 2001 From: Flounn Date: Sat, 19 Nov 2016 21:28:06 +0100 Subject: [PATCH] Fix(http): invalidStateError response body Check on null value failed with last version of mozilla. Check on undefined type instead. --- modules/@angular/http/src/backends/xhr_backend.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/@angular/http/src/backends/xhr_backend.ts b/modules/@angular/http/src/backends/xhr_backend.ts index df8ba12869..7d1ee961be 100644 --- a/modules/@angular/http/src/backends/xhr_backend.ts +++ b/modules/@angular/http/src/backends/xhr_backend.ts @@ -59,7 +59,7 @@ export class XHRConnection implements Connection { // responseText is the old-school way of retrieving response (supported by IE8 & 9) // response/responseType properties were introduced in ResourceLoader Level2 spec // (supported by IE10) - body = _xhr.response == null ? _xhr.responseText : _xhr.response; + body = (typeof _xhr.response === 'undefined') ? _xhr.responseText : _xhr.response; // Implicitly strip a potential XSSI prefix. if (typeof body === 'string') {