Add running pointer cat support to httpd. - bitreich-httpd - Bitreich HTTPD service
HTML git clone git://bitreich.org/bitreich-httpd git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/bitreich-httpd
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit bfdf7e2df9db3f0ff9f02f21e08b109aa533a723
DIR parent 865ab23256ee80bea656a7cca229be47cbf2f8c7
HTML Author: Christoph Lohmann <20h@r-36.net>
Date: Wed, 31 Jul 2024 17:25:24 +0200
Add running pointer cat support to httpd.
Diffstat:
M bitreich-httpd.c | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
DIR diff --git a/bitreich-httpd.c b/bitreich-httpd.c
@@ -293,6 +293,9 @@ main(int argc, char *argv[])
} else if (strstr(request, "bitreich.css")) {
asprintf(&path, "%s/s/bitreich.css", wwwbase);
ctype = "text/css";
+ } else if (strstr(request, "neko.png")) {
+ asprintf(&path, "%s/s/neko.png", wwwbase);
+ ctype = "image/png";
} else if (strstr(request, "yolo-css-")) {
/* We hate CSS in here. */
sleep(1);