diff options
Diffstat (limited to 'xs_httpd.h')
| -rw-r--r-- | xs_httpd.h | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -265,7 +265,7 @@ void xs_httpd_response(FILE *f, int status, xs_dict *headers, xs_str *body, int | |||
| 265 | xs_str *k; | 265 | xs_str *k; |
| 266 | xs_val *v; | 266 | xs_val *v; |
| 267 | 267 | ||
| 268 | proto = xs_fmt("HTTP/1.1 %d ", status); | 268 | proto = xs_fmt("HTTP/1.1 %d %s", status, status / 100 == 2 ? "OK" : "ERROR"); |
| 269 | fprintf(f, "%s\r\n", proto); | 269 | fprintf(f, "%s\r\n", proto); |
| 270 | 270 | ||
| 271 | p = headers; | 271 | p = headers; |