From 59b7926984ff6a9a51836e3af208f8c1b7938b17 Mon Sep 17 00:00:00 2001 From: Mengxuan Xia Date: Tue, 13 Mar 2018 18:10:18 -0400 Subject: [PATCH] Fixed problem of "Invalid response for blob" with fetch --- Libraries/Network/XMLHttpRequest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Network/XMLHttpRequest.js b/Libraries/Network/XMLHttpRequest.js index 082aaa8932fe23..45bb583a823c75 100644 --- a/Libraries/Network/XMLHttpRequest.js +++ b/Libraries/Network/XMLHttpRequest.js @@ -253,7 +253,7 @@ class XMLHttpRequest extends EventTarget(...XHR_EVENTS) { break; case 'blob': - if (typeof this._response === 'object' && this._response) { + if ((typeof this._response === 'object' && this._response) || this._response==='') { this._cachedResponse = BlobManager.createFromOptions(this._response); } else { throw new Error(`Invalid response for blob: ${this._response}`);