Add startup sound support to the 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 458867563dbad1db447aa489fdf56bd614f02154 DIR parent cc63ab3d1f6bbed6ea4bae99d2327a961b8807e1 HTML Author: Christoph Lohmann <20h@r-36.net> Date: Wed, 26 Aug 2020 19:21:41 +0200 Add startup sound support to the httpd. Diffstat: M bitreich-httpd.c | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) --- DIR diff --git a/bitreich-httpd.c b/bitreich-httpd.c @@ -133,6 +133,12 @@ main(int argc, char *argv[]) } else if (strstr(request, "favicon.gif")) { asprintf(&path, "%s/s/favicon.gif", wwwbase); ctype = "image/gif"; + } else if (strstr(request, "deep-thinker.gif")) { + asprintf(&path, "%s/s/deep-thinker.gif", wwwbase); + ctype = "image/gif"; + } else if (strstr(request, "startup.mp3")) { + asprintf(&path, "%s/s/startup.mp3", wwwbase); + ctype = "audio/mpeg"; } else if (strstr(request, "dickbutt")) { asprintf(&path, "/home/annna/bin/annna-say -c \"#bitreich-tv\" \"%s:%s cake hater appeared.\"",