summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorGravatar default2022-09-27 18:01:51 +0200
committerGravatar default2022-09-27 18:01:51 +0200
commitf1dbd8e70092fac0b202a98a10a832851cdd7f14 (patch)
tree2cf8137bc291b81e3d5771ad953abde1da38b463 /httpd.c
parentRewrite not_really_markdown() with xs_regex_split(). (diff)
downloadpenes-snac2-f1dbd8e70092fac0b202a98a10a832851cdd7f14.tar.gz
penes-snac2-f1dbd8e70092fac0b202a98a10a832851cdd7f14.tar.xz
penes-snac2-f1dbd8e70092fac0b202a98a10a832851cdd7f14.zip
New variable USER_AGENT.
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/httpd.c b/httpd.c
index 5b26122..13591a1 100644
--- a/httpd.c
+++ b/httpd.c
@@ -158,7 +158,7 @@ void httpd_connection(int rs)
158 ctype = "text/html; charset=utf-8"; 158 ctype = "text/html; charset=utf-8";
159 159
160 headers = xs_dict_append(headers, "content-type", ctype); 160 headers = xs_dict_append(headers, "content-type", ctype);
161 headers = xs_dict_append(headers, "x-creator", "snac/2.x"); 161 headers = xs_dict_append(headers, "x-creator", USER_AGENT);
162 162
163 if (b_size == 0 && body != NULL) 163 if (b_size == 0 && body != NULL)
164 b_size = strlen(body); 164 b_size = strlen(body);