diff options
author | 2016-03-30 13:55:50 +0200 | |
---|---|---|
committer | 2016-03-30 13:55:50 +0200 | |
commit | ca208671cc79bbc05c574df788035878e5d39382 (patch) | |
tree | f5a61c22b3d650e20b21295706320602da1f3d19 /src/afb-hreq.c | |
parent | 8ca3d16606a99ef91d01a623dbe5ce1331688953 (diff) |
refactoring
Change-Id: I8dd46cf7fa57962e20e02f0fe34b3ffaa4c94f08
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-hreq.c')
-rw-r--r-- | src/afb-hreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-hreq.c b/src/afb-hreq.c index 7bee69b3..f7f3bb15 100644 --- a/src/afb-hreq.c +++ b/src/afb-hreq.c @@ -75,7 +75,7 @@ int afb_hreq_unprefix(struct afb_hreq *hreq, const char *prefix, size_t length) { /* check the prefix ? */ if (length > hreq->lentail || (hreq->tail[length] && hreq->tail[length] != '/') - || memcmp(prefix, hreq->tail, length)) + || strncasecmp(prefix, hreq->tail, length)) return 0; /* removes successives / */ |