net.websocket: Honour ex.insecure to match net.http's new parameter for that
authorMatthew Wild <mwild1@gmail.com>
Fri, 08 Jun 2018 16:30:46 +0100
changeset 8896 eb710675f7f8
parent 8895 fb38b2c77a72
child 8897 7273fb6af831
net.websocket: Honour ex.insecure to match net.http's new parameter for that
net/websocket.lua
--- a/net/websocket.lua	Fri Jun 08 16:30:04 2018 +0100
+++ b/net/websocket.lua	Fri Jun 08 16:30:46 2018 +0100
@@ -236,6 +236,7 @@
 		method = "GET";
 		headers = headers;
 		sslctx = ex.sslctx;
+		insecure = ex.insecure;
 	}, function(b, c, r, http_req)
 		if c ~= 101
 		   or r.headers["connection"]:lower() ~= "upgrade"