Changeset

7914:a6eb3b6bf903

mod_websocket: Set connections starttls method to false to prevent mod_tls from offering starttls (fixes #837)
author Kim Alvefur <zash@zash.se>
date Sat, 25 Feb 2017 02:15:15 +0100
parents 7913:64daa21450f9
children 7915:e3d3ebd417f4
files plugins/mod_websocket.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_websocket.lua	Sat Feb 25 01:16:31 2017 +0100
+++ b/plugins/mod_websocket.lua	Sat Feb 25 02:15:15 2017 +0100
@@ -136,6 +136,8 @@
 	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 [[<!DOCTYPE html><html><head><title>Websocket</title></head><body>