mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-09-27 11:56:39 +00:00
httpd: fixed skipping bytes in dynamic header under certain memory constraints
This commit is contained in:
parent
43253483a8
commit
cd15306868
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user