summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-01-12 09:28:02 +0100
committerdefault <nobody@localhost>2023-01-12 09:28:02 +0100
commitbb0d8f2a2755af5e11b46d32be84155ba71ea534 (patch)
tree86eb998f66c875dc7d2d40ba3021a3e69ffe9400 /http.c
parent16be679ecdf12f5324f8778e4e03d21a84d4144f (diff)
Backport from xs.
Diffstat (limited to 'http.c')
-rw-r--r--http.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/http.c b/http.c
index eab686e..4b45753 100644
--- a/http.c
+++ b/http.c
@@ -123,19 +123,19 @@ static int _check_signature(snac *snac, char *req, char **err)
p = l;
while (xs_list_iter(&p, &v)) {
if (xs_startswith(v, "keyId"))
- keyId = xs_crop(xs_dup(v), 7, -1);
+ keyId = xs_crop_i(xs_dup(v), 7, -1);
else
if (xs_startswith(v, "headers"))
- headers = xs_crop(xs_dup(v), 9, -1);
+ headers = xs_crop_i(xs_dup(v), 9, -1);
else
if (xs_startswith(v, "signature"))
- signature = xs_crop(xs_dup(v), 11, -1);
+ signature = xs_crop_i(xs_dup(v), 11, -1);
else
if (xs_startswith(v, "created"))
- created = xs_crop(xs_dup(v), 9, -1);
+ created = xs_crop_i(xs_dup(v), 9, -1);
else
if (xs_startswith(v, "expires"))
- expires = xs_crop(xs_dup(v), 9, -1);
+ expires = xs_crop_i(xs_dup(v), 9, -1);
}
}