mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
Add OK or ERROR to HTTP response.
This commit is contained in:
parent
f832e6a508
commit
e144b0dc67
@ -265,7 +265,7 @@ void xs_httpd_response(FILE *f, int status, xs_dict *headers, xs_str *body, int
|
|||||||
xs_str *k;
|
xs_str *k;
|
||||||
xs_val *v;
|
xs_val *v;
|
||||||
|
|
||||||
proto = xs_fmt("HTTP/1.1 %d ", status);
|
proto = xs_fmt("HTTP/1.1 %d %s", status, status / 100 == 2 ? "OK" : "ERROR");
|
||||||
fprintf(f, "%s\r\n", proto);
|
fprintf(f, "%s\r\n", proto);
|
||||||
|
|
||||||
p = headers;
|
p = headers;
|
||||||
|
Loading…
Reference in New Issue
Block a user