Skip to content

Commit

Permalink
http2: migrate Deno.listenTls params to deno 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
avindra committed Oct 10, 2024
1 parent b1af914 commit f3034e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .local/bin/http2
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ console.log(__dirname);

const server = Deno.listenTls({
port,
certFile: `${__dirname}/localhost.crt`,
keyFile: `${__dirname}/localhost.key`,
cert: Deno.readTextFileSync(`${__dirname}/localhost.crt`),
key: Deno.readTextFileSync(`${__dirname}/localhost.key`),
alpnProtocols: ["h2", "http/1.1"],
});

Expand Down

0 comments on commit f3034e4

Please sign in to comment.