From 6e5c001c287c51c558f4dc255d7a130937bd4777 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 6 Jun 2023 01:59:46 +0200 Subject: wildcard_cmp: Allow case-insensitive searches The new search feature will require them. --- handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'handler.c') diff --git a/handler.c b/handler.c index 9103db0..1d7e922 100644 --- a/handler.c +++ b/handler.c @@ -58,7 +58,7 @@ static int on_payload(const struct http_payload *const p, { const struct elem *const e = &h->elem[i]; - if (e->op == p->op && !wildcard_cmp(p->resource, e->url)) + if (e->op == p->op && !wildcard_cmp(p->resource, e->url, true)) return e->f(p, r, e->user); } -- cgit v1.2.3