mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-19 16:20:45 +00:00
httpd: fix sending of data from send_headers
This commit is contained in:
parent
515a4cad73
commit
1de8d432d4
@ -916,7 +916,9 @@ http_send_headers(struct tcp_pcb *pcb, struct http_state *hs)
|
|||||||
/* When we are at the end of the headers, check for data to send
|
/* When we are at the end of the headers, check for data to send
|
||||||
* instead of waiting for ACK from remote side to continue
|
* instead of waiting for ACK from remote side to continue
|
||||||
* (which would happen when sending files from async read). */
|
* (which would happen when sending files from async read). */
|
||||||
http_check_eof(pcb, hs);
|
if(http_check_eof(pcb, hs)) {
|
||||||
|
data_to_send = HTTP_DATA_TO_SEND_CONTINUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* If we get here and there are still header bytes to send, we send
|
/* If we get here and there are still header bytes to send, we send
|
||||||
* the header information we just wrote immediately. If there are no
|
* the header information we just wrote immediately. If there are no
|
||||||
|
Loading…
x
Reference in New Issue
Block a user