aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_http.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-11-29 23:27:51 +0100
committerKim Alvefur <zash@zash.se>2019-11-29 23:27:51 +0100
commit0fdb85997abd2be59252595b1fec9e46389da586 (patch)
tree69d0f584473e7af9d56eba8aa56dd07be64a0954 /plugins/mod_http.lua
parente354f1abd8ca2fb0fc2c25c1c61c1866cc41d5eb (diff)
downloadprosody-0fdb85997abd2be59252595b1fec9e46389da586.tar.gz
prosody-0fdb85997abd2be59252595b1fec9e46389da586.zip
mod_net_multiplex: Add support for using ALPN
Potentially a bit more efficient since it can jump to the selected protocol on connect instead of waiting for some data to look at. Adds a 'protocol' field to net providers for this purpose.
Diffstat (limited to 'plugins/mod_http.lua')
-rw-r--r--plugins/mod_http.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua
index e6ef89f5..c3e19bb3 100644
--- a/plugins/mod_http.lua
+++ b/plugins/mod_http.lua
@@ -242,6 +242,7 @@ module:provides("net", {
default_port = 5281;
encryption = "ssl";
multiplex = {
+ protocol = "http/1.1";
pattern = "^[A-Z]";
};
});