diff options
author | default <nobody@localhost> | 2024-08-30 19:10:26 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2024-08-30 19:10:26 +0200 |
commit | 0218e964b0d73340c8d0c5d9e37991359d7c4be9 (patch) | |
tree | 9cfc1650abf8780be52dc219e37a311244a294e2 /xs_httpd.h | |
parent | bff33fc2eda701ff5d6cd8433c15dfd9aca768f7 (diff) |
Backport from xs.
Diffstat (limited to 'xs_httpd.h')
-rw-r--r-- | xs_httpd.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -105,8 +105,7 @@ void xs_httpd_response(FILE *f, int status, const char *status_text, xs_dict *he proto = xs_fmt("HTTP/1.1 %d %s", status, status_text); fprintf(f, "%s\r\n", proto); - int c = 0; - while (xs_dict_next(headers, &k, &v, &c)) { + xs_dict_foreach(headers, k, v) { fprintf(f, "%s: %s\r\n", k, v); } |