From 91bb0615d982d1adcc5680c346f9510905464584 Mon Sep 17 00:00:00 2001 From: default Date: Sat, 9 Mar 2024 08:44:48 +0100 Subject: Replaced most xs_dict_iter() with xs_dict_next(). --- httpd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'httpd.c') 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); } -- cgit v1.2.3