} \r
}\r
\r
-/** HTTP Server State handler for the Request Process state. This state manages the processing of incomming HTTP\r
+/** HTTP Server State handler for the Request Process state. This state manages the processing of incoming HTTP\r
* GET requests to the server from the receiving HTTP client.\r
*/\r
static void HTTPServerApp_OpenRequestedFile(void)\r
uip_tcp_appstate_t* const AppState = &uip_conn->appstate;\r
char* const AppData = (char*)uip_appdata;\r
\r
- char* HeaderToSend;\r
- uint16_t HeaderLength;\r
+ char* HeaderToSend;\r
\r
/* Determine which HTTP header should be sent to the client */\r
if (AppState->HTTPServer.FileOpen)\r
}\r
\r
/* Copy over the HTTP response header and send it to the receiving client */\r
- HeaderLength = strlen_P(HeaderToSend);\r
- strncpy_P(AppData, HeaderToSend, HeaderLength);\r
- uip_send(AppData, HeaderLength);\r
+ strcpy_P(AppData, HeaderToSend);\r
+ uip_send(AppData, strlen(AppData));\r
}\r
\r
/** HTTP Server State handler for the MIME Header Send state. This state manages the transmission of the file\r