aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/httpserver_listener.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/httpserver_listener.lua b/net/httpserver_listener.lua
index 48ade157..455191fb 100644
--- a/net/httpserver_listener.lua
+++ b/net/httpserver_listener.lua
@@ -22,6 +22,11 @@ function httpserver.listener(conn, data)
if not request then
request = new_request(conn);
requests[conn] = request;
+
+ -- If using HTTPS, request is secure
+ if conn.ssl() then
+ request.secure = true;
+ end
end
if data then