- HeaderLength = strlen_P(HeaderToSend);\r
- strncpy_P(AppData, HeaderToSend, HeaderLength);\r
- uip_send(AppData, HeaderLength);\r
-}\r
-\r
-/** HTTP Server State handler for the MIME Header Send state. This state manages the transmission of the file\r
- * MIME type header for the requested file to the receiving HTTP client.\r
- */\r
-static void Webserver_SendMIMETypeHeader(void)\r
-{\r
- uip_tcp_appstate_t* const AppState = &uip_conn->appstate;\r
- char* AppData = (char*)uip_appdata;\r
-\r
- char* Extension = strpbrk(AppState->FileName, ".");\r
- uint16_t MIMEHeaderLength = 0;\r
-\r
- /* Check to see if a file extension was found for the requested filename */\r