Skip to content

Commit

Permalink
refactor(http): use cert and key for Deno.listenTls() (denoland…
Browse files Browse the repository at this point in the history
…#4479)

* refactor(http): use `cert` and `key` for `Deno.listenTls()`

* fix
  • Loading branch information
iuioiua authored Mar 13, 2024
1 parent 9871f24 commit 1dc1ae5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ export class Server {
const listener = Deno.listenTls({
port: this.#port ?? HTTPS_PORT,
hostname: this.#host ?? "0.0.0.0",
certFile,
keyFile,
cert: Deno.readTextFileSync(certFile),
key: Deno.readTextFileSync(keyFile),
transport: "tcp",
// ALPN protocol support not yet stable.
// alpnProtocols: ["h2", "http/1.1"],
Expand Down

0 comments on commit 1dc1ae5

Please sign in to comment.