From 305385e06f90ca3216e1aa4e43b20dd7d53c1222 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 24 Oct 2023 12:38:53 +0000 Subject: Make the switch to custom headers Signed-off-by: Laurent Bercot --- src/tipideed/tipideed.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/tipideed/tipideed.c') diff --git a/src/tipideed/tipideed.c b/src/tipideed/tipideed.c index f4d18a6..cf961db 100644 --- a/src/tipideed/tipideed.c +++ b/src/tipideed/tipideed.c @@ -352,7 +352,7 @@ int main (int argc, char const *const *argv, char const *const *envp) stralloc bodysa = STRALLOC_ZERO ; size_t remoteip, remotehost ; char const *x ; - uint32_t n, rhlen ; + uint32_t n ; char progstr[14 + PID_FMT] = "tipideed: pid " ; progstr[14 + pid_fmt(progstr + 14, getpid())] = 0 ; PROG = progstr ; @@ -397,11 +397,11 @@ int main (int argc, char const *const *argv, char const *const *envp) if (!n) strerr_dief3x(102, "bad", " config value for ", "G:index_file") ; g.indexn = n-1 ; - x = tipidee_conf_get_responseheaders(&g.conf, "G:response_headers", &rhlen, &n) ; + x = tipidee_conf_get_responseheaders(&g.conf, "G:response_headers", &n, &g.rhdrn) ; if (!x) strerr_diefu3sys(102, "get", " config value for ", "G:response_headers") ; tipidee_response_header rhdr[n ? n : 1] ; /* should start a block but that's a lot of editing */ - if (!tipidee_response_header_preparebuiltin(rhdr, n, x, rhlen)) + if (!tipidee_response_header_preparebuiltin(rhdr, g.rhdrn, x, n)) strerr_dief3x(102, "bad", " config value for ", "G:response_headers") ; g.rhdr = rhdr ; -- cgit v1.3.1