Add css yolo feature. - bitreich-httpd - Bitreich HTTPD service (HTM) 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 16d0fa0c4b45e58b1588ee6c64cd373e63029460 (DIR) parent 02ecd2dc0bcee22def4b6e16e3c74a4a39e90f34 (HTM) Author: Christoph Lohmann <20h@r-36.net> Date: Mon, 8 Mar 2021 21:50:45 +0100 Add css yolo feature. Diffstat: M bitreich-httpd.c | 8 ++++++++ 1 file changed, 8 insertions(+), 0 deletions(-) --- (DIR) diff --git a/bitreich-httpd.c b/bitreich-httpd.c @@ -147,6 +147,14 @@ main(int argc, char *argv[]) free(path); asprintf(&path, "%s/s/dickbutt.jpg", wwwbase); ctype = "image/jpeg"; + } else if (strstr(request, "bitreich.css")) { + asprintf(&path, "%s/s/bitreich.css", wwwbase); + ctype = "text/css"; + } else if (strstr(request, "yolo-css-")) { + /* We hate CSS in here. */ + sleep(1); + asprintf(&path, "%s/s/yolo-css.css", wwwbase); + ctype = "text/css"; } else { asprintf(&path, "%s/%s", wwwbase, wwwindex); ctype = "text/html";