# HG changeset patch # User Kim Alvefur # Date 1575066359 -3600 # Node ID 8d3acf16c404aef60d608476baa0428e9d74e881 # Parent fbeb7a3fc4ebec123c1d384a3d9e2f2269507ef9 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. diff -r fbeb7a3fc4eb -r 8d3acf16c404 net/http.lua --- 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; });