Fix warnings about wrong MIME type for CSS files.
This commit is contained in:
parent
8e3336ff34
commit
3c6de2903b
1 changed files with 2 additions and 0 deletions
|
@ -105,6 +105,8 @@ page_static_file(http_connection_t *hc, const char *remain, void *opaque)
|
|||
postfix++;
|
||||
if(!strcmp(postfix, "js"))
|
||||
content = "text/javascript; charset=UTF-8";
|
||||
else if(!strcmp(postfix, "css"))
|
||||
content = "text/css; charset=UTF-8";
|
||||
}
|
||||
|
||||
// TODO: handle compression
|
||||
|
|
Loading…
Add table
Reference in a new issue