From cfa4f540baac5beaf168de3e818c882ccbd95136 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E6=9D=89?= Date: Tue, 3 Dec 2019 08:14:25 +0800 Subject: better html for file_server (#3423) --- std/http/testdata/simple_https_server.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'std/http/testdata') diff --git a/std/http/testdata/simple_https_server.ts b/std/http/testdata/simple_https_server.ts index 655457c94..21d1181cf 100644 --- a/std/http/testdata/simple_https_server.ts +++ b/std/http/testdata/simple_https_server.ts @@ -6,10 +6,12 @@ const tlsOptions = { hostname: "localhost", port: 4503, certFile: "./http/testdata/tls/localhost.crt", - keyFile: "./http/testdata/tls/localhost.key", + keyFile: "./http/testdata/tls/localhost.key" }; const s = serveTLS(tlsOptions); -console.log(`Simple HTTPS server listening on ${tlsOptions.hostname}:${tlsOptions.port}`); +console.log( + `Simple HTTPS server listening on ${tlsOptions.hostname}:${tlsOptions.port}` +); const body = new TextEncoder().encode("Hello HTTPS"); for await (const req of s) { req.respond({ body }); -- cgit v1.2.3