Software /
code /
prosody
Diff
net/http.lua @ 10464:8d3acf16c404
net.http: Set ALPN on requests
Shouldn't hurt. Revert if it turns out it does.
Supported in LuaSec 0.8. Should be ignored otherwise.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 29 Nov 2019 23:25:59 +0100 |
parent | 10235:6c804b6b2ca2 |
child | 10803:71d04bd6cadd |
line wrap: on
line diff
--- a/net/http.lua Fri Nov 29 23:24:14 2019 +0100 +++ b/net/http.lua Fri Nov 29 23:25:59 2019 +0100 @@ -285,7 +285,7 @@ end local default_http = new({ - sslctx = { mode = "client", protocol = "sslv23", options = { "no_sslv2", "no_sslv3" } }; + sslctx = { mode = "client", protocol = "sslv23", options = { "no_sslv2", "no_sslv3" }, alpn = "http/1.1" }; suppress_errors = true; });