From 0ed99f4fe6a755b525d16947dfc256304cff289b Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Wed, 10 May 2023 02:32:35 -0400 Subject: [core] treat mod_h2 as built-in module (for now) (addendum to previous commit) (lighttpd test confs set server.compat-module-load = "disable") Note: a future release of lighttpd will build mod_h2 as a separate module (not built-in) when lighttpd is built with shared modules (.so) --- src/plugin.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/plugin.c b/src/plugin.c index 8cd79230..e2b21571 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -135,9 +135,9 @@ int plugins_load(server *srv) { if (srv->srvconf.compat_module_load) { if (buffer_eq_slen(&ds->value, CONST_STR_LEN("mod_deflate"))) continue; - if (buffer_eq_slen(&ds->value, CONST_STR_LEN("mod_h2"))) - continue; } + if (buffer_eq_slen(module, CONST_STR_LEN("mod_h2"))) + continue; return -1; } } @@ -182,6 +182,8 @@ int plugins_load(server *srv) { if (buffer_eq_slen(module, CONST_STR_LEN("mod_deflate"))) continue; } + if (buffer_eq_slen(module, CONST_STR_LEN("mod_h2"))) + continue; return -1; } buffer_copy_buffer(tb, module); @@ -206,6 +208,8 @@ int plugins_load(server *srv) { if (buffer_eq_slen(module, CONST_STR_LEN("mod_deflate"))) continue; } + if (buffer_eq_slen(module, CONST_STR_LEN("mod_h2"))) + continue; return -1; } buffer_clear(tb); -- cgit v1.2.1