summaryrefslogtreecommitdiffstats
path: root/src/httpd.c
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-04-16 19:50:39 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2022-04-16 19:50:39 +0200
commitf80e4bda5263e3428537ecb7d49b18ffd3c0e4ce (patch)
tree7efe9596fa165b80841f6cebe75cb04e17c53f5a /src/httpd.c
parentv tretje gre rado (diff)
downloadsear.c-f80e4bda5263e3428537ecb7d49b18ffd3c0e4ce.tar
sear.c-f80e4bda5263e3428537ecb7d49b18ffd3c0e4ce.tar.gz
sear.c-f80e4bda5263e3428537ecb7d49b18ffd3c0e4ce.tar.bz2
sear.c-f80e4bda5263e3428537ecb7d49b18ffd3c0e4ce.tar.lz
sear.c-f80e4bda5263e3428537ecb7d49b18ffd3c0e4ce.tar.xz
sear.c-f80e4bda5263e3428537ecb7d49b18ffd3c0e4ce.tar.zst
sear.c-f80e4bda5263e3428537ecb7d49b18ffd3c0e4ce.zip
Diffstat (limited to 'src/httpd.c')
-rw-r--r--src/httpd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/httpd.c b/src/httpd.c
index 23f4b60..efebd75 100644
--- a/src/httpd.c
+++ b/src/httpd.c
@@ -153,6 +153,11 @@ enum MHD_Result sc_httpd (void * cls,
sprintf(response, sc_osdd, host);
content_type = "application/opensearchdescription+xml";
break;
+ case 'c': /* css.css - stylesheets */
+ mhdrmm = MHD_RESPMEM_PERSISTENT;
+ response = sc_css;
+ content_type = "text/css";
+ break;
case 'l': /* logs.html */
{
#ifdef SC_LOGMEM