summaryrefslogtreecommitdiff
path: root/src/mod_magnet_cache.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-11-15 20:26:54 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2020-07-08 18:08:51 -0400
commited62e354ff03eca69a3961b5e1eaf818cbef21f0 (patch)
tree96319aadb82a95e452113713e4877ca3c4027326 /src/mod_magnet_cache.c
parent83633a9f06ee11f51fdeb17c5358ab7357997275 (diff)
downloadlighttpd-git-ed62e354ff03eca69a3961b5e1eaf818cbef21f0.tar.gz
[core] use config_plugin_values_init()
Diffstat (limited to 'src/mod_magnet_cache.c')
-rw-r--r--src/mod_magnet_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_magnet_cache.c b/src/mod_magnet_cache.c
index 760ac8c9..9fddb72c 100644
--- a/src/mod_magnet_cache.c
+++ b/src/mod_magnet_cache.c
@@ -74,7 +74,7 @@ lua_State *script_cache_get_script(server *srv, connection *con, script_cache *c
break;
}
- stat_cache_etag_get(sce, con->etag_flags);
+ stat_cache_etag_get(sce, con->conf.etag_flags);
if (!buffer_is_equal(sce->etag, sc->etag)) {
/* the etag is outdated, reload the function */
lua_pop(sc->L, 1);
@@ -115,7 +115,7 @@ lua_State *script_cache_get_script(server *srv, connection *con, script_cache *c
}
if (HANDLER_GO_ON == stat_cache_get_entry(srv, con, sc->name, &sce)) {
- buffer_copy_buffer(sc->etag, stat_cache_etag_get(sce, con->etag_flags));
+ buffer_copy_buffer(sc->etag, stat_cache_etag_get(sce, con->conf.etag_flags));
}
force_assert(lua_isfunction(sc->L, -1));