httpd: fix sending of data from send_headers

This commit is contained in:
Philipp Toelke 2016-01-13 09:44:54 +01:00 committed by Dirk Ziegelmeier
parent 515a4cad73
commit 1de8d432d4

View File

@ -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