From ade01f6cf77ea560b731d68185af6818b76dbe2e Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 27 Oct 2020 13:51:40 +0100 Subject: [PATCH] space --- src/platform/web/dom/request/xhr.js | 1 + 1 file changed, 1 insertion(+) 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";