diff --git a/src/platform/web/dom/request/xhr.js b/src/platform/web/dom/request/xhr.js index ab5ac9f5..9574c8cf 100644 --- a/src/platform/web/dom/request/xhr.js +++ b/src/platform/web/dom/request/xhr.js @@ -38,6 +38,7 @@ class RequestResult { function send(url, {method, headers, timeout, body, format}) { const xhr = new XMLHttpRequest(); xhr.open(method, url); + if (format === "buffer") { // important to call this after calling open xhr.responseType = "arraybuffer";