From 140385c949862161a661faae24343c45ab8c7ee4 Mon Sep 17 00:00:00 2001 From: Lort533 <76491869+Lort533@users.noreply.github.com> Date: Mon, 25 Jul 2022 21:48:03 +0200 Subject: [PATCH 1/2] HTTPS support --- deps/coro-http.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deps/coro-http.lua b/deps/coro-http.lua index 2ff1947..6be9967 100644 --- a/deps/coro-http.lua +++ b/deps/coro-http.lua @@ -15,10 +15,11 @@ local httpCodec = require('http-codec') local net = require('coro-net') -local function createServer(host, port, onConnect) +local function createServer(host, port, tls, onConnect) return net.createServer({ host = host, port = port, + tls = tls, encoder = httpCodec.encoder, decoder = httpCodec.decoder, }, function (read, write, socket) From c608d59e0f1cf287cb80edc9b5be9609d81a85cc Mon Sep 17 00:00:00 2001 From: Lort533 <76491869+Lort533@users.noreply.github.com> Date: Wed, 25 Jan 2023 11:16:47 +0100 Subject: [PATCH 2/2] Update coro-http.lua --- deps/coro-http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/coro-http.lua b/deps/coro-http.lua index 6be9967..6d82042 100644 --- a/deps/coro-http.lua +++ b/deps/coro-http.lua @@ -15,7 +15,7 @@ local httpCodec = require('http-codec') local net = require('coro-net') -local function createServer(host, port, tls, onConnect) +local function createServer(host, port, onConnect, tls) return net.createServer({ host = host, port = port,