aboutsummaryrefslogtreecommitdiffstats
path: root/net
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
commit26f35cb4200b1db5d2467e25e1651c8fa1dd6368 (patch)
tree4ef62bc9340c218f40253a71c12f06f6e2e36c98 /net
parent4aba2ebff7e4774884c7ad04a59f44228e399c35 (diff)
downloadprosody-26f35cb4200b1db5d2467e25e1651c8fa1dd6368.tar.gz
prosody-26f35cb4200b1db5d2467e25e1651c8fa1dd6368.zip
net.websocket: Honour ex.insecure to match net.http's new parameter for that
Diffstat (limited to 'net')
-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"