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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user