From bb0d8f2a2755af5e11b46d32be84155ba71ea534 Mon Sep 17 00:00:00 2001 From: default Date: Thu, 12 Jan 2023 09:28:02 +0100 Subject: Backport from xs. --- http.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'http.c') 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); } } -- cgit v1.2.3