net/http.lua
changeset 10468 8d3acf16c404
parent 10239 6c804b6b2ca2
child 10807 71d04bd6cadd
equal deleted inserted replaced
10467:fbeb7a3fc4eb 10468:8d3acf16c404
   283 	};
   283 	};
   284 	return http;
   284 	return http;
   285 end
   285 end
   286 
   286 
   287 local default_http = new({
   287 local default_http = new({
   288 	sslctx = { mode = "client", protocol = "sslv23", options = { "no_sslv2", "no_sslv3" } };
   288 	sslctx = { mode = "client", protocol = "sslv23", options = { "no_sslv2", "no_sslv3" }, alpn = "http/1.1" };
   289 	suppress_errors = true;
   289 	suppress_errors = true;
   290 });
   290 });
   291 
   291 
   292 return {
   292 return {
   293 	request = function (u, ex, callback)
   293 	request = function (u, ex, callback)