summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
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);
}
}