diff options
author | Dean Camera <[email protected]> | 2010-02-03 11:31:59 +0000 |
---|---|---|
committer | Dean Camera <[email protected]> | 2010-02-03 11:31:59 +0000 |
commit | b9cf4815e5445db2d805117c90adaa1755c853cf (patch) | |
tree | 536170467a2ad8129ff0cbb24faabd76bbf83f4f /Projects/Webserver/Lib/HTTPServerApp.c | |
parent | 16ea5aa7a2e5f326f8ff129e740a19bb3fb7829f (diff) | |
download | qmk_firmware-b9cf4815e5445db2d805117c90adaa1755c853cf.tar.gz qmk_firmware-b9cf4815e5445db2d805117c90adaa1755c853cf.zip |
Disable uIP connection polling for now - this seems to corrupt the buffers.
Diffstat (limited to 'Projects/Webserver/Lib/HTTPServerApp.c')
-rw-r--r-- | Projects/Webserver/Lib/HTTPServerApp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Projects/Webserver/Lib/HTTPServerApp.c b/Projects/Webserver/Lib/HTTPServerApp.c index 9a70dade1f..635a3076c3 100644 --- a/Projects/Webserver/Lib/HTTPServerApp.c +++ b/Projects/Webserver/Lib/HTTPServerApp.c @@ -199,7 +199,6 @@ static void HTTPServerApp_SendResponseHeader(void) char* const AppData = (char*)uip_appdata;
char* HeaderToSend;
- uint16_t HeaderLength;
/* Determine which HTTP header should be sent to the client */
if (AppState->HTTPServer.FileOpen)
@@ -214,9 +213,8 @@ static void HTTPServerApp_SendResponseHeader(void) }
/* Copy over the HTTP response header and send it to the receiving client */
- HeaderLength = strlen_P(HeaderToSend);
- strncpy_P(AppData, HeaderToSend, HeaderLength);
- uip_send(AppData, HeaderLength);
+ strcpy_P(AppData, HeaderToSend);
+ uip_send(AppData, strlen(AppData));
}
/** HTTP Server State handler for the MIME Header Send state. This state manages the transmission of the file
|