diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2018-11-12 14:09:50 -0500 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2018-11-12 14:09:50 -0500 |
| commit | e931c53a234a55f29169415cac016e4d792f7f97 (patch) | |
| tree | d0ea799d6ec1ee548016dd62408e0531941034f9 /http_test.ts | |
| parent | 92455a0b67982bd28f23a09acb9e27dcb6f75e1d (diff) | |
Use Uint8Array instead of ArrayBufferView
Original: https://github.com/denoland/deno_std/commit/0c8ad6eb1af05b259cc7c622e87e27b402886c96
Diffstat (limited to 'http_test.ts')
| -rw-r--r-- | http_test.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/http_test.ts b/http_test.ts index b0007a892..e6cb87f01 100644 --- a/http_test.ts +++ b/http_test.ts @@ -5,7 +5,8 @@ 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) { |
