From: Fredrik Tolf Date: Wed, 7 Jan 2009 11:05:07 +0000 (+0100) Subject: Added CSS "support" to sendfile. X-Git-Tag: 0.1~102 X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=ee1b55f6f064c76b69f908b66d7d3d6c5d01807f Added CSS "support" to sendfile. --- 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"))