control when not first chunk.
[citadel.git] / webcit / tcp_sockets.c
index 4a60fed494853a913bd325b4c7ce11ae107977b6..730bb8c69cc2e217af0ed2061d6a18e88fb7b794 100644 (file)
@@ -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;
                }