mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-01 04:12:07 +00:00
Make sure tag insertion is complete when tag is followed by EOF.
See bug #59728. Signed-off-by: Mike Kleshov <m.kleshov@gmail.com>
This commit is contained in:
parent
2d0c49adca
commit
c6777547f6
@ -1610,6 +1610,11 @@ http_send(struct altcp_pcb *pcb, struct http_state *hs)
|
|||||||
}
|
}
|
||||||
#endif /* LWIP_HTTPD_DYNAMIC_HEADERS */
|
#endif /* LWIP_HTTPD_DYNAMIC_HEADERS */
|
||||||
|
|
||||||
|
#if LWIP_HTTPD_SSI
|
||||||
|
if (hs->ssi && (hs->ssi->tag_state == TAG_SENDING)) {
|
||||||
|
/* do not check the condition below */
|
||||||
|
} else
|
||||||
|
#endif
|
||||||
/* Have we run out of file data to send? If so, we need to read the next
|
/* Have we run out of file data to send? If so, we need to read the next
|
||||||
* block from the file. */
|
* block from the file. */
|
||||||
if (hs->left == 0) {
|
if (hs->left == 0) {
|
||||||
@ -1621,6 +1626,9 @@ http_send(struct altcp_pcb *pcb, struct http_state *hs)
|
|||||||
#if LWIP_HTTPD_SSI
|
#if LWIP_HTTPD_SSI
|
||||||
if (hs->ssi) {
|
if (hs->ssi) {
|
||||||
data_to_send = http_send_data_ssi(pcb, hs);
|
data_to_send = http_send_data_ssi(pcb, hs);
|
||||||
|
if (hs->ssi->tag_state == TAG_SENDING) {
|
||||||
|
return data_to_send;
|
||||||
|
}
|
||||||
} else
|
} else
|
||||||
#endif /* LWIP_HTTPD_SSI */
|
#endif /* LWIP_HTTPD_SSI */
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user