aboutsummaryrefslogtreecommitdiff
path: root/handler.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-06-06 01:59:46 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-07-20 23:52:55 +0200
commit35ced95c363640c3f8cd86b60330fb68338101b8 (patch)
treef06c46b023dcdf0d7c3b401a0ad75890508e6976 /handler.c
parent0759122e4c7dd17af9f981040e44c747579478b6 (diff)
wildcard_cmp: Allow case-insensitive searches
The new search feature will require them.
Diffstat (limited to 'handler.c')
-rw-r--r--handler.c2
1 files changed, 1 insertions, 1 deletions
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);
}