Skip to content

Commit f3034e4

Browse files
committed
http2: migrate Deno.listenTls params to deno 2.0
1 parent b1af914 commit f3034e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.local/bin/http2

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ console.log(__dirname);
1717

1818
const server = Deno.listenTls({
1919
port,
20-
certFile: `${__dirname}/localhost.crt`,
21-
keyFile: `${__dirname}/localhost.key`,
20+
cert: Deno.readTextFileSync(`${__dirname}/localhost.crt`),
21+
key: Deno.readTextFileSync(`${__dirname}/localhost.key`),
2222
alpnProtocols: ["h2", "http/1.1"],
2323
});
2424

0 commit comments

Comments
 (0)