summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorGravatar default2023-01-12 09:28:02 +0100
committerGravatar default2023-01-12 09:28:02 +0100
commitbb0d8f2a2755af5e11b46d32be84155ba71ea534 (patch)
tree86eb998f66c875dc7d2d40ba3021a3e69ffe9400 /http.c
parentShow the More... link above the 'About this site'. (diff)
downloadpenes-snac2-bb0d8f2a2755af5e11b46d32be84155ba71ea534.tar.gz
penes-snac2-bb0d8f2a2755af5e11b46d32be84155ba71ea534.tar.xz
penes-snac2-bb0d8f2a2755af5e11b46d32be84155ba71ea534.zip
Backport from xs.
Diffstat (limited to '')
-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)
123 p = l; 123 p = l;
124 while (xs_list_iter(&p, &v)) { 124 while (xs_list_iter(&p, &v)) {
125 if (xs_startswith(v, "keyId")) 125 if (xs_startswith(v, "keyId"))
126 keyId = xs_crop(xs_dup(v), 7, -1); 126 keyId = xs_crop_i(xs_dup(v), 7, -1);
127 else 127 else
128 if (xs_startswith(v, "headers")) 128 if (xs_startswith(v, "headers"))
129 headers = xs_crop(xs_dup(v), 9, -1); 129 headers = xs_crop_i(xs_dup(v), 9, -1);
130 else 130 else
131 if (xs_startswith(v, "signature")) 131 if (xs_startswith(v, "signature"))
132 signature = xs_crop(xs_dup(v), 11, -1); 132 signature = xs_crop_i(xs_dup(v), 11, -1);
133 else 133 else
134 if (xs_startswith(v, "created")) 134 if (xs_startswith(v, "created"))
135 created = xs_crop(xs_dup(v), 9, -1); 135 created = xs_crop_i(xs_dup(v), 9, -1);
136 else 136 else
137 if (xs_startswith(v, "expires")) 137 if (xs_startswith(v, "expires"))
138 expires = xs_crop(xs_dup(v), 9, -1); 138 expires = xs_crop_i(xs_dup(v), 9, -1);
139 } 139 }
140 } 140 }
141 141