diff options
author | default <nobody@localhost> | 2024-05-23 10:01:37 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2024-05-23 10:01:37 +0200 |
commit | 8cf7559a7e21c5757455b948814d61e6e96f08f1 (patch) | |
tree | c9a9d6d637977f97ebfc83ba36ae794fe5f9d8c1 /xs_httpd.h | |
parent | 63e0ca5abac0f00121f724927c25edaf822097a9 (diff) |
Added more const.
Diffstat (limited to 'xs_httpd.h')
-rw-r--r-- | xs_httpd.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -99,8 +99,8 @@ void xs_httpd_response(FILE *f, int status, xs_dict *headers, xs_str *body, int /* sends an httpd response */ { xs *proto; - xs_str *k; - xs_val *v; + const xs_str *k; + const xs_val *v; proto = xs_fmt("HTTP/1.1 %d %s", status, status / 100 == 2 ? "OK" : "ERROR"); fprintf(f, "%s\r\n", proto); |