mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
net.websocket: Honour ex.insecure to match net.http's new parameter for that
This commit is contained in:
parent
3892eb5063
commit
74bfc82312
1 changed files with 1 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue