From f80e4bda5263e3428537ecb7d49b18ffd3c0e4ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sat, 16 Apr 2022 19:50:39 +0200 Subject: separated css and html, removed php-cli dependency --- src/httpd.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/httpd.c') 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 -- cgit v1.2.3