summaryrefslogtreecommitdiff
path: root/cli/rt
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2020-09-08 17:46:15 +0800
committerGitHub <noreply@github.com>2020-09-08 11:46:15 +0200
commit1d0f1ed446acd2db7c052503570c9249e7b841e9 (patch)
tree96fd01ce451b48dc945df8d8237d4e30841c97d8 /cli/rt
parentc5d50737f05f6b1999d1973ba5bd260473aadcbd (diff)
fix: Empty Response body returns 0-byte array (#7387)
Diffstat (limited to 'cli/rt')
-rw-r--r--cli/rt/24_body.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/rt/24_body.js b/cli/rt/24_body.js
index a3348907b..f755e2bad 100644
--- a/cli/rt/24_body.js
+++ b/cli/rt/24_body.js
@@ -85,7 +85,7 @@
const enc = new TextEncoder();
return enc.encode(bodySource.toString()).buffer;
} else if (!bodySource) {
- return null;
+ return new ArrayBuffer(0);
}
throw new Error(
`Body type not implemented: ${bodySource.constructor.name}`,