httpd: fixed skipping bytes in dynamic header under certain memory constraints

This commit is contained in:
goldsimon 2014-09-19 13:11:45 +02:00
parent 43253483a8
commit cd15306868
1 changed files with 3 additions and 0 deletions

View File

@ -1025,6 +1025,9 @@ http_send_headers(struct tcp_pcb *pcb, struct http_state *hs)
if ((err == ERR_OK) && (old_sendlen != sendlen)) {
/* Remember that we added some more data to be transmitted. */
data_to_send = HTTP_DATA_TO_SEND_CONTINUE;
} else if (err != ERR_OK) {
/* special case: http_write does not try to send 1 byte */
sendlen = 0;
}
/* Fix up the header position for the next time round. */