From 97eae758b6ba3f4f951a54282a1fc57c721cf037 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 22 Aug 2023 10:16:57 +0000 Subject: Fix redirection lookup Signed-off-by: Laurent Bercot --- src/tipideed/tipideed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tipideed') diff --git a/src/tipideed/tipideed.c b/src/tipideed/tipideed.c index 42e65a6..e1021d3 100644 --- a/src/tipideed/tipideed.c +++ b/src/tipideed/tipideed.c @@ -229,7 +229,7 @@ static inline int serve (tipidee_rql *rql, char const *docroot, size_t docrootle if (rql->m != TIPIDEE_METHOD_OPTIONS) { tipidee_redirection rd = TIPIDEE_REDIRECTION_ZERO ; - int e = tipidee_conf_get_redirection(&g.conf, fn, docrootlen, &rd) ; + int e = tipidee_conf_get_redirection(&g.conf, docroot, docrootlen, rql->uri.path, &rd) ; if (e == -1) die500sys(rql, 111, "get redirection data for ", fn) ; if (e) { -- cgit v1.2.3