Add falling support to bitreich 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 040d5eece2d8e537f7ea2bd0295b5a9ca3522431
DIR parent bfdf7e2df9db3f0ff9f02f21e08b109aa533a723
HTML Author: Christoph Lohmann <20h@r-36.net>
Date: Fri, 25 Oct 2024 17:49:11 +0200
Add falling support to bitreich 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
@@ -296,6 +296,9 @@ main(int argc, char *argv[])
} else if (strstr(request, "neko.png")) {
asprintf(&path, "%s/s/neko.png", wwwbase);
ctype = "image/png";
+ } else if (strstr(request, "snow.js")) {
+ asprintf(&path, "%s/s/snow.js", wwwbase);
+ ctype = "text/javascript";
} else if (strstr(request, "yolo-css-")) {
/* We hate CSS in here. */
sleep(1);