diff --git a/src/dom/es/HttpReqPeer.js b/src/dom/es/HttpReqPeer.js index cf85d60de..ae102b77c 100644 --- a/src/dom/es/HttpReqPeer.js +++ b/src/dom/es/HttpReqPeer.js @@ -104,7 +104,7 @@ class HttpReqPeer extends sys.Obj { if (isText) res.content(xhr.responseText); else if (xhr.responseType == "arraybuffer") - res.contentBuf(sys.MemBuf.__makeBytes(res.content)); + res.contentBuf(sys.MemBuf.__makeBytes(xhr.response)); const all = xhr.getAllResponseHeaders().split("\n"); for (let i=0; i