summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-03-09 08:44:48 +0100
committerdefault <nobody@localhost>2024-03-09 08:44:48 +0100
commit91bb0615d982d1adcc5680c346f9510905464584 (patch)
tree5433a2dcdc2cc34115b76570bdc63b49429093bc /httpd.c
parent00b019b8902e9d319d855b9156f97f931923331c (diff)
Replaced most xs_dict_iter() with xs_dict_next().
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/httpd.c b/httpd.c
index 319a7b3..d74642f 100644
--- a/httpd.c
+++ b/httpd.c
@@ -403,7 +403,8 @@ void httpd_connection(FILE *f)
xs_dict *more_headers = xs_dict_get(srv_config, "http_headers");
if (xs_type(more_headers) == XSTYPE_DICT) {
char *k, *v;
- while (xs_dict_iter(&more_headers, &k, &v))
+ int c = 0;
+ while (xs_dict_next(more_headers, &k, &v, &c))
headers = xs_dict_set(headers, k, v);
}