From c99a49ae0284e06e194d680553942156498a41bd Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 25 Feb 2017 02:15:15 +0100 Subject: mod_websocket: Set connections starttls method to false to prevent mod_tls from offering starttls (fixes #837) --- plugins/mod_websocket.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/mod_websocket.lua') diff --git a/plugins/mod_websocket.lua b/plugins/mod_websocket.lua index c19ad566..47d170a1 100644 --- a/plugins/mod_websocket.lua +++ b/plugins/mod_websocket.lua @@ -136,6 +136,8 @@ function handle_request(event) local request, response = event.request, event.response; local conn = response.conn; + conn.starttls = false; -- Prevent mod_tls from believing starttls can be done + if not request.headers.sec_websocket_key then response.headers.content_type = "text/html"; return [[Websocket -- cgit v1.2.3