diff options
Diffstat (limited to 'http_test.ts')
| -rw-r--r-- | http_test.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/http_test.ts b/http_test.ts index e6cb87f01..b0007a892 100644 --- a/http_test.ts +++ b/http_test.ts @@ -5,8 +5,7 @@ const addr = "0.0.0.0:8000"; const s = serve(addr); console.log(`listening on http://${addr}/`); -const body = (new TextEncoder()).encode("Hello World\n"); - +const body = new TextEncoder().encode("Hello World\n"); async function main() { for await (const req of s) { |
