mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
In server_get_handler(), body must be a dynamic string.
This commit is contained in:
parent
17afbbe4b5
commit
a67a82d545
4
httpd.c
4
httpd.c
@ -121,8 +121,8 @@ int server_get_handler(d_char *req, char *q_path,
|
|||||||
if (strcmp(q_path, "/robots.txt") == 0) {
|
if (strcmp(q_path, "/robots.txt") == 0) {
|
||||||
status = 200;
|
status = 200;
|
||||||
*ctype = "text/plain";
|
*ctype = "text/plain";
|
||||||
*body = "User-agent: *\n"
|
*body = xs_str_new("User-agent: *\n"
|
||||||
"Disallow: /\n";
|
"Disallow: /\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user