aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-06-08 16:30:46 +0100
committerMatthew Wild <mwild1@gmail.com>2018-06-08 16:30:46 +0100
commit74bfc82312facf3b94d795eb22884cd53050f799 (patch)
tree4ef62bc9340c218f40253a71c12f06f6e2e36c98
parent3892eb50635cbabe788b8004d74de3297dc037de (diff)
downloadprosody-74bfc82312facf3b94d795eb22884cd53050f799.tar.gz
prosody-74bfc82312facf3b94d795eb22884cd53050f799.zip
net.websocket: Honour ex.insecure to match net.http's new parameter for that
-rw-r--r--net/websocket.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/websocket.lua b/net/websocket.lua
index 3e4bcc2c..469c6a58 100644
--- a/net/websocket.lua
+++ b/net/websocket.lua
@@ -236,6 +236,7 @@ local function connect(url, ex, listeners)
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"