diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-07-04 01:46:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-04 01:46:32 +0200 |
commit | 3c8bbc434d32ad75097647b0cdbc9ea1b0ad2645 (patch) | |
tree | 5743520be734337cca697175b3ea7bede8ac600d /ext/http/00_serve.js | |
parent | 7a7e0748e3ad6d178f5a351bbb5c8ed896f7f833 (diff) |
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.
Diffstat (limited to 'ext/http/00_serve.js')
-rw-r--r-- | ext/http/00_serve.js | 2 |
1 files changed, 1 insertions, 1 deletions
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, }; |