summaryrefslogtreecommitdiff
path: root/xs_httpd.h
diff options
context:
space:
mode:
authorGravatar default2024-05-23 10:01:37 +0200
committerGravatar default2024-05-23 10:01:37 +0200
commit8cf7559a7e21c5757455b948814d61e6e96f08f1 (patch)
treec9a9d6d637977f97ebfc83ba36ae794fe5f9d8c1 /xs_httpd.h
parentAlso return an application/ld+json object in webfinger. (diff)
downloadsnac2-8cf7559a7e21c5757455b948814d61e6e96f08f1.tar.gz
snac2-8cf7559a7e21c5757455b948814d61e6e96f08f1.tar.xz
snac2-8cf7559a7e21c5757455b948814d61e6e96f08f1.zip
Added more const.
Diffstat (limited to 'xs_httpd.h')
-rw-r--r--xs_httpd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xs_httpd.h b/xs_httpd.h
index 60933c8..4195b81 100644
--- a/xs_httpd.h
+++ b/xs_httpd.h
@@ -99,8 +99,8 @@ void xs_httpd_response(FILE *f, int status, xs_dict *headers, xs_str *body, int
99/* sends an httpd response */ 99/* sends an httpd response */
100{ 100{
101 xs *proto; 101 xs *proto;
102 xs_str *k; 102 const xs_str *k;
103 xs_val *v; 103 const xs_val *v;
104 104
105 proto = xs_fmt("HTTP/1.1 %d %s", status, status / 100 == 2 ? "OK" : "ERROR"); 105 proto = xs_fmt("HTTP/1.1 %d %s", status, status / 100 == 2 ? "OK" : "ERROR");
106 fprintf(f, "%s\r\n", proto); 106 fprintf(f, "%s\r\n", proto);