Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bac8c1f
)
Added CSS "support" to sendfile.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 7 Jan 2009 11:05:07 +0000
(12:05 +0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 7 Jan 2009 11:05:07 +0000
(12:05 +0100)
src/sendfile.c
patch
|
blob
|
blame
|
history
diff --git
a/src/sendfile.c
b/src/sendfile.c
index
f12e33e
..
30b1c24
100644
(file)
--- 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"))