diff options
| author | 2022-12-13 15:40:59 +0100 | |
|---|---|---|
| committer | 2022-12-13 15:40:59 +0100 | |
| commit | a67a82d545559c87acf689d70f8c9539e4484e01 (patch) | |
| tree | 4d39da3dc0a562d188b6e9022114c13c5761df25 | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-a67a82d545559c87acf689d70f8c9539e4484e01.tar.gz snac2-a67a82d545559c87acf689d70f8c9539e4484e01.tar.xz snac2-a67a82d545559c87acf689d70f8c9539e4484e01.zip | |
In server_get_handler(), body must be a dynamic string.
| -rw-r--r-- | httpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -121,8 +121,8 @@ int server_get_handler(d_char *req, char *q_path, | |||
| 121 | if (strcmp(q_path, "/robots.txt") == 0) { | 121 | if (strcmp(q_path, "/robots.txt") == 0) { |
| 122 | status = 200; | 122 | status = 200; |
| 123 | *ctype = "text/plain"; | 123 | *ctype = "text/plain"; |
| 124 | *body = "User-agent: *\n" | 124 | *body = xs_str_new("User-agent: *\n" |
| 125 | "Disallow: /\n"; | 125 | "Disallow: /\n"); |
| 126 | } | 126 | } |
| 127 | 127 | ||
| 128 | if (status != 0) | 128 | if (status != 0) |