diff options
| author | 2022-09-27 18:01:51 +0200 | |
|---|---|---|
| committer | 2022-09-27 18:01:51 +0200 | |
| commit | f1dbd8e70092fac0b202a98a10a832851cdd7f14 (patch) | |
| tree | 2cf8137bc291b81e3d5771ad953abde1da38b463 /httpd.c | |
| parent | Rewrite not_really_markdown() with xs_regex_split(). (diff) | |
| download | penes-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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); |