1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-08-05 13:16:13 +03:00

css + added strip option

git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@124 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
cameronrich
2007-09-12 07:26:00 +00:00
parent 15651d6de5
commit 7cd4ea1b95
7 changed files with 20 additions and 12 deletions

View File

@@ -1026,8 +1026,13 @@ static void send_error(struct connstruct *cn, int err)
static const char *getmimetype(const char *name)
{
/* only bother with two types - let the browser/OS figure the rest out */
return strstr(name, ".htm") ? "text/html" : "application/octet-stream";
/* only bother with a few mime types - let the browser figure the rest out */
if (strstr(name, ".htm"))
return "text/html";
else if (strstr(name, ".css"))
return "text/css";
else
return "application/octet-stream";
}
static int special_write(struct connstruct *cn,