Add css yolo feature. - bitreich-httpd - Bitreich HTTPD service | |
git clone git://bitreich.org/bitreich-httpd git://enlrupgkhuxnvlhsf6lc3fziv5h2h… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit 16d0fa0c4b45e58b1588ee6c64cd373e63029460 | |
parent 02ecd2dc0bcee22def4b6e16e3c74a4a39e90f34 | |
Author: Christoph Lohmann <[email protected]> | |
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(-) | |
--- | |
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"; |