summaryrefslogtreecommitdiff
path: root/xs_httpd.h
diff options
context:
space:
mode:
authorGravatar default2024-08-30 19:10:26 +0200
committerGravatar default2024-08-30 19:10:26 +0200
commit0218e964b0d73340c8d0c5d9e37991359d7c4be9 (patch)
tree9cfc1650abf8780be52dc219e37a311244a294e2 /xs_httpd.h
parenttimeline_del() also deletes from the pinned and bookmark caches. (diff)
downloadpenes-snac2-0218e964b0d73340c8d0c5d9e37991359d7c4be9.tar.gz
penes-snac2-0218e964b0d73340c8d0c5d9e37991359d7c4be9.tar.xz
penes-snac2-0218e964b0d73340c8d0c5d9e37991359d7c4be9.zip
Backport from xs.
Diffstat (limited to '')
-rw-r--r--xs_httpd.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/xs_httpd.h b/xs_httpd.h
index d080b39..1782487 100644
--- a/xs_httpd.h
+++ b/xs_httpd.h
@@ -105,8 +105,7 @@ void xs_httpd_response(FILE *f, int status, const char *status_text, xs_dict *he
105 proto = xs_fmt("HTTP/1.1 %d %s", status, status_text); 105 proto = xs_fmt("HTTP/1.1 %d %s", status, status_text);
106 fprintf(f, "%s\r\n", proto); 106 fprintf(f, "%s\r\n", proto);
107 107
108 int c = 0; 108 xs_dict_foreach(headers, k, v) {
109 while (xs_dict_next(headers, &k, &v, &c)) {
110 fprintf(f, "%s: %s\r\n", k, v); 109 fprintf(f, "%s: %s\r\n", k, v);
111 } 110 }
112 111