diff --git a/Libraries/Network/XMLHttpRequest.js b/Libraries/Network/XMLHttpRequest.js index fd6e756e38c087..98d8bedd401288 100644 --- a/Libraries/Network/XMLHttpRequest.js +++ b/Libraries/Network/XMLHttpRequest.js @@ -246,7 +246,9 @@ class XMLHttpRequest extends EventTarget(...XHR_EVENTS) { case 'blob': if (typeof this._response === 'object' && this._response) { this._cachedResponse = BlobManager.createFromOptions(this._response); - } else { + } else if (this._response === '') { + this._cachedResponse = null; + } else { throw new Error(`Invalid response for blob: ${this._response}`); } break;