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-06-06 03:48:50 +0200
commit6e5c001c287c51c558f4dc255d7a130937bd4777 (patch)
treef8ea7edb5fcc3a273f1097e81754ad81fc615e58 /handler.c
parentd4c8a8062ff722d7165f4b5faefe0f9b73d3738a (diff)
downloadslcl-6e5c001c287c51c558f4dc255d7a130937bd4777.tar.gz
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);
}