projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Re-add Webserver uIP application polling, apply patch to uIP by Andrew Ruder to fix...
[pub/USBasp.git]
/
Projects
/
Webserver
/
Lib
/
HTTPServerApp.c
diff --git
a/Projects/Webserver/Lib/HTTPServerApp.c
b/Projects/Webserver/Lib/HTTPServerApp.c
index
9a70dad
..
081207c
100644
(file)
--- a/
Projects/Webserver/Lib/HTTPServerApp.c
+++ b/
Projects/Webserver/Lib/HTTPServerApp.c
@@
-198,8
+198,7
@@
static void HTTPServerApp_SendResponseHeader(void)
uip_tcp_appstate_t* const AppState = &uip_conn->appstate;
\r
char* const AppData = (char*)uip_appdata;
\r
\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
/* Determine which HTTP header should be sent to the client */
\r
if (AppState->HTTPServer.FileOpen)
\r
@@
-214,9
+213,8
@@
static void HTTPServerApp_SendResponseHeader(void)
}
\r
\r
/* Copy over the HTTP response header and send it to the receiving client */
\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
}
\r
\r
/** HTTP Server State handler for the MIME Header Send state. This state manages the transmission of the file
\r