summaryrefslogtreecommitdiff
path: root/cli/rt/24_body.js
diff options
context:
space:
mode:
Diffstat (limited to 'cli/rt/24_body.js')
-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}`,