From 1de8d432d4d9c5bd160e35ff799a4112625db779 Mon Sep 17 00:00:00 2001 From: Philipp Toelke Date: Wed, 13 Jan 2016 09:44:54 +0100 Subject: [PATCH] httpd: fix sending of data from send_headers --- src/apps/httpd/httpd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/apps/httpd/httpd.c b/src/apps/httpd/httpd.c index dd47c9a0..50c414fe 100644 --- a/src/apps/httpd/httpd.c +++ b/src/apps/httpd/httpd.c @@ -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 * instead of waiting for ACK from remote side to continue * (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 * the header information we just wrote immediately. If there are no