diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2023-05-10 02:32:35 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2023-05-10 02:48:13 -0400 |
commit | 0ed99f4fe6a755b525d16947dfc256304cff289b (patch) | |
tree | 856bfc983991865290298934da67cdf8b150039e | |
parent | 1196dd727d063ae116067719a534d69a39867c24 (diff) | |
download | lighttpd-git-0ed99f4fe6a755b525d16947dfc256304cff289b.tar.gz |
[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)
-rw-r--r-- | src/plugin.c | 8 |
1 files changed, 6 insertions, 2 deletions
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); |