summaryrefslogtreecommitdiff
path: root/std/http/testdata/simple_server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/http/testdata/simple_server.ts')
-rw-r--r--std/http/testdata/simple_server.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/std/http/testdata/simple_server.ts b/std/http/testdata/simple_server.ts
index 05f169705..d8ca4cc97 100644
--- a/std/http/testdata/simple_server.ts
+++ b/std/http/testdata/simple_server.ts
@@ -2,9 +2,8 @@
// This is an example of a server that responds with an empty body
import { serve } from "../server.ts";
-const port = parseInt(Deno.args[0] || "4502");
-const addr: Deno.ListenOptions = { port };
-console.log(`Simple server listening on ${port}`);
+const addr = "0.0.0.0:4502";
+console.log(`Simple server listening on ${addr}`);
for await (const req of serve(addr)) {
req.respond({});
}