1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

Fixed issue with non-blocking client mode.

Added php mime type.


git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@219 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
cameronrich 2011-09-30 09:41:05 +00:00
parent c0eb269cf7
commit cd28f3caae
2 changed files with 4 additions and 1 deletions

View File

@ -1203,6 +1203,8 @@ static const char *getmimetype(const char *name)
return "text/html"; return "text/html";
else if (strstr(name, ".css")) else if (strstr(name, ".css"))
return "text/css"; return "text/css";
else if (strstr(name, ".php"))
return "application/x-http-php";
else else
return "application/octet-stream"; return "application/octet-stream";
} }

View File

@ -158,9 +158,10 @@ int do_client_connect(SSL *ssl)
if (ret < SSL_OK) if (ret < SSL_OK)
break; break;
} }
}
ssl->hs_status = ret; /* connected? */ ssl->hs_status = ret; /* connected? */
}
return ret; return ret;
} }