diff options
Diffstat (limited to 'xs_fcgi.h')
-rw-r--r-- | xs_fcgi.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -306,8 +306,7 @@ void xs_fcgi_response(FILE *f, int status, xs_dict *headers, xs_str *body, int b out = xs_str_cat(out, s1); } - int c = 0; - while (xs_dict_next(headers, &k, &v, &c)) { + xs_dict_foreach(headers, k, v) { xs *s1 = xs_fmt("%s: %s\r\n", k, v); out = xs_str_cat(out, s1); } |