summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorGravatar default2024-05-23 10:01:37 +0200
committerGravatar default2024-05-23 10:01:37 +0200
commit8cf7559a7e21c5757455b948814d61e6e96f08f1 (patch)
treec9a9d6d637977f97ebfc83ba36ae794fe5f9d8c1 /http.c
parentAlso return an application/ld+json object in webfinger. (diff)
downloadpenes-snac2-8cf7559a7e21c5757455b948814d61e6e96f08f1.tar.gz
penes-snac2-8cf7559a7e21c5757455b948814d61e6e96f08f1.tar.xz
penes-snac2-8cf7559a7e21c5757455b948814d61e6e96f08f1.zip
Added more const.
Diffstat (limited to '')
-rw-r--r--http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/http.c b/http.c
index 4d85631..b21f1dc 100644
--- a/http.c
+++ b/http.c
@@ -26,7 +26,7 @@ xs_dict *http_signed_request_raw(const char *keyid, const char *seckey,
26 xs *hdrs = NULL; 26 xs *hdrs = NULL;
27 const char *host; 27 const char *host;
28 const char *target; 28 const char *target;
29 char *k, *v; 29 const char *k, *v;
30 xs_dict *response; 30 xs_dict *response;
31 31
32 date = xs_str_utctime(0, "%a, %d %b %Y %H:%M:%S GMT"); 32 date = xs_str_utctime(0, "%a, %d %b %Y %H:%M:%S GMT");
@@ -144,7 +144,7 @@ int check_signature(const xs_dict *req, xs_str **err)
144 /* extract the values */ 144 /* extract the values */
145 xs *l = xs_split(sig_hdr, ","); 145 xs *l = xs_split(sig_hdr, ",");
146 int c = 0; 146 int c = 0;
147 xs_val *v; 147 const xs_val *v;
148 148
149 while (xs_list_next(l, &v, &c)) { 149 while (xs_list_next(l, &v, &c)) {
150 xs *kv = xs_split_n(v, "=", 1); 150 xs *kv = xs_split_n(v, "=", 1);
@@ -205,7 +205,7 @@ int check_signature(const xs_dict *req, xs_str **err)
205 { 205 {
206 xs *l = xs_split(headers, " "); 206 xs *l = xs_split(headers, " ");
207 xs_list *p; 207 xs_list *p;
208 xs_val *v; 208 const xs_val *v;
209 209
210 p = l; 210 p = l;
211 while (xs_list_iter(&p, &v)) { 211 while (xs_list_iter(&p, &v)) {