diff options
| author | 2024-05-23 10:01:37 +0200 | |
|---|---|---|
| committer | 2024-05-23 10:01:37 +0200 | |
| commit | 8cf7559a7e21c5757455b948814d61e6e96f08f1 (patch) | |
| tree | c9a9d6d637977f97ebfc83ba36ae794fe5f9d8c1 /http.c | |
| parent | Also return an application/ld+json object in webfinger. (diff) | |
| download | penes-snac2-8cf7559a7e21c5757455b948814d61e6e96f08f1.tar.gz penes-snac2-8cf7559a7e21c5757455b948814d61e6e96f08f1.tar.xz penes-snac2-8cf7559a7e21c5757455b948814d61e6e96f08f1.zip | |
Added more const.
Diffstat (limited to '')
| -rw-r--r-- | http.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -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)) { |