From 2dd631b6345b8b435e4e1921964c4e3ada6d26c2 Mon Sep 17 00:00:00 2001 From: Brian Frank Date: Thu, 25 Apr 2024 16:47:41 -0400 Subject: [PATCH] dom: fix HttpRes.contentBuf and beef up documentation --- src/dom/es/HttpReqPeer.js | 5 +++-- src/dom/fan/HttpReq.fan | 6 ++++-- src/dom/fan/HttpRes.fan | 7 ++++--- 3 files changed, 11 insertions(+), 7 deletions(-) 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