summaryrefslogtreecommitdiff
path: root/runtime/js
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2021-04-15 18:48:56 -0400
committerGitHub <noreply@github.com>2021-04-15 18:48:56 -0400
commitfe9cee620a4c0d8923bdf99882f95275b69abcb4 (patch)
tree9b9e68fc3a837f05f4933195590cbcc1cb90462d /runtime/js
parentad7f6d4510afc71ed40da1aa1ad649d59d3aef12 (diff)
fix(#10182): hang during http server response (#10197)
Diffstat (limited to 'runtime/js')
-rw-r--r--runtime/js/40_http.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/js/40_http.js b/runtime/js/40_http.js
index 3916b1df4..45361ee34 100644
--- a/runtime/js/40_http.js
+++ b/runtime/js/40_http.js
@@ -130,7 +130,7 @@
zeroCopyBuf = null;
}
- const responseBodyRid = Deno.core.opSync("op_http_response", [
+ const responseBodyRid = await Deno.core.opAsync("op_http_response", [
responseSenderRid,
resp.status ?? 200,
flattenHeaders(resp.headers),