diff options
author | 木杉 <zhmushan@qq.com> | 2019-12-03 08:14:25 +0800 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2019-12-02 16:14:25 -0800 |
commit | cfa4f540baac5beaf168de3e818c882ccbd95136 (patch) | |
tree | 5a685c28a9783f5abe3337dd2ab9679c81022419 /std/http/testdata/simple_https_server.ts | |
parent | 136b5e3da2c689b54b34c46fa41973e0ccca66ab (diff) |
better html for file_server (#3423)
Diffstat (limited to 'std/http/testdata/simple_https_server.ts')
-rw-r--r-- | std/http/testdata/simple_https_server.ts | 6 |
1 files changed, 4 insertions, 2 deletions
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 }); |