From: Wilfried Goesgens Date: Sat, 15 Feb 2014 14:47:56 +0000 (+0000) Subject: control when not first chunk. X-Git-Tag: v9.01~129 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=2d232cfc36501a6a40700e59d994307b3be14d0e control when not first chunk. --- diff --git a/webcit/tcp_sockets.c b/webcit/tcp_sockets.c index 4a60fed49..730bb8c69 100644 --- a/webcit/tcp_sockets.c +++ b/webcit/tcp_sockets.c @@ -644,6 +644,7 @@ void serv_read_binary_to_http(StrBuf *MimeType, size_t total_len, int is_static, StrBufPrintf(BufHeader, "%s%x\r\n", (first)?"":"\r\n", StrLength (WCC->WBuf)); + first = 0; if (send_http(BufHeader) < 0) break; }