forked from mystiq/hydrogen-web
space
This commit is contained in:
parent
2ebce8eb7b
commit
ade01f6cf7
1 changed files with 1 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue