diff options
author | Kim Alvefur <zash@zash.se> | 2019-11-29 23:25:59 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-11-29 23:25:59 +0100 |
commit | e0a077e53b7daa04975397bbd3fdc49b73ef0f50 (patch) | |
tree | 506bca825db060480babfc6efef9e5b245ee1de6 | |
parent | b1338d27ac7f4ed2c5277f760568ecefb83dfb32 (diff) | |
download | prosody-e0a077e53b7daa04975397bbd3fdc49b73ef0f50.tar.gz prosody-e0a077e53b7daa04975397bbd3fdc49b73ef0f50.zip |
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.
-rw-r--r-- | net/http.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http.lua b/net/http.lua index 055fc936..8ca30db2 100644 --- a/net/http.lua +++ b/net/http.lua @@ -285,7 +285,7 @@ local function new(options) 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; }); |