Skip to content

Commit

Permalink
Fixed problem of "Invalid response for blob" with fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
xiamx committed Mar 13, 2018
1 parent 9a3cad4 commit 59b7926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Network/XMLHttpRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit 59b7926

Please sign in to comment.