# HG changeset patch # User Matthew Wild # Date 1528471846 -3600 # Node ID eb710675f7f8daf3132a8e2ce5df6415b3c5a82c # Parent fb38b2c77a72e88fb3b78e982383cb7c09cf3ea2 net.websocket: Honour ex.insecure to match net.http's new parameter for that diff -r fb38b2c77a72 -r eb710675f7f8 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"