aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-11-29 23:25:59 +0100
committerKim Alvefur <zash@zash.se>2019-11-29 23:25:59 +0100
commite354f1abd8ca2fb0fc2c25c1c61c1866cc41d5eb (patch)
tree506bca825db060480babfc6efef9e5b245ee1de6 /net
parent1f33d9c6bb1310ba153580cfdb8d1d36a838f2b7 (diff)
downloadprosody-e354f1abd8ca2fb0fc2c25c1c61c1866cc41d5eb.tar.gz
prosody-e354f1abd8ca2fb0fc2c25c1c61c1866cc41d5eb.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.
Diffstat (limited to 'net')
-rw-r--r--net/http.lua2
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;
});