diff options
| author | 2024-03-09 08:44:48 +0100 | |
|---|---|---|
| committer | 2024-03-09 08:44:48 +0100 | |
| commit | 91bb0615d982d1adcc5680c346f9510905464584 (patch) | |
| tree | 5433a2dcdc2cc34115b76570bdc63b49429093bc /httpd.c | |
| parent | Backport from xs. (diff) | |
| download | penes-snac2-91bb0615d982d1adcc5680c346f9510905464584.tar.gz penes-snac2-91bb0615d982d1adcc5680c346f9510905464584.tar.xz penes-snac2-91bb0615d982d1adcc5680c346f9510905464584.zip | |
Replaced most xs_dict_iter() with xs_dict_next().
Diffstat (limited to '')
| -rw-r--r-- | httpd.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -403,7 +403,8 @@ void httpd_connection(FILE *f) | |||
| 403 | xs_dict *more_headers = xs_dict_get(srv_config, "http_headers"); | 403 | xs_dict *more_headers = xs_dict_get(srv_config, "http_headers"); |
| 404 | if (xs_type(more_headers) == XSTYPE_DICT) { | 404 | if (xs_type(more_headers) == XSTYPE_DICT) { |
| 405 | char *k, *v; | 405 | char *k, *v; |
| 406 | while (xs_dict_iter(&more_headers, &k, &v)) | 406 | int c = 0; |
| 407 | while (xs_dict_next(more_headers, &k, &v, &c)) | ||
| 407 | headers = xs_dict_set(headers, k, v); | 408 | headers = xs_dict_set(headers, k, v); |
| 408 | } | 409 | } |
| 409 | 410 | ||