Added CSS "support" to sendfile.
authorFredrik Tolf <fredrik@dolda2000.com>
Wed, 7 Jan 2009 11:05:07 +0000 (12:05 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Wed, 7 Jan 2009 11:05:07 +0000 (12:05 +0100)
src/sendfile.c

index f12e33e..30b1c24 100644 (file)
@@ -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"))