diff options
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 | |||
| 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 | ||