From 3c8bbc434d32ad75097647b0cdbc9ea1b0ad2645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 4 Jul 2023 01:46:32 +0200 Subject: feat: Stabilize Deno.serve() API (#19141) This commit stabilizes "Deno.serve()", which becomes the preferred way to create HTTP servers in Deno. Documentation was adjusted for each overload of "Deno.serve()" API and the API always binds to "127.0.0.1:8000" by default. --- ext/http/00_serve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/http/00_serve.js b/ext/http/00_serve.js index 43b04ff28..95079f412 100644 --- a/ext/http/00_serve.js +++ b/ext/http/00_serve.js @@ -623,7 +623,7 @@ function serve(arg1, arg2) { }; const listenOpts = { hostname: options.hostname ?? "0.0.0.0", - port: options.port ?? (wantsHttps ? 9000 : 8000), + port: options.port ?? 8000, reusePort: options.reusePort ?? false, }; -- cgit v1.2.3