From ee1b55f6f064c76b69f908b66d7d3d6c5d01807f Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Wed, 7 Jan 2009 12:05:07 +0100 Subject: [PATCH] Added CSS "support" to sendfile. --- src/sendfile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sendfile.c b/src/sendfile.c index f12e33e..30b1c24 100644 --- a/src/sendfile.c +++ b/src/sendfile.c @@ -72,6 +72,8 @@ static char *getmimetype(char *file, struct stat *sb) return("application/xhtml+xml"); if(!strrcmp(file, ".txt")) return("text/plain"); + if(!strrcmp(file, ".css")) + return("text/css"); if(!strrcmp(file, ".py")) return("text/plain"); if(!strrcmp(file, ".c")) -- 2.11.0