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.
--- 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;
});