Changeset

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
parents 10463:fbeb7a3fc4eb
children 10465:09697a673015
files net/http.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;
 });