final String iContentType, final ORecordBytes record, final String iFileName) throws IOException {
sendStatus(iRequest, iCode, iReason);
sendResponseHeaders(iRequest, iContentType);
writeLine(iRequest, "Content-Disposition: attachment; filename=" + iFileName);
writeLine(iRequest, "Date: " + new Date());
<BUG>writeLine(iRequest, OHttpUtils.CONTENT_LENGTH + (record.getSize()));
</BUG>
writeLine(iRequest, null);
record.toOutputStream(iRequest.channel.outStream);
iRequest.channel.flush();

final String iContentType, final ORecordBytes record, final String iFileName) throws IOException {
sendStatus(iRequest, iCode, iReason);
sendResponseHeaders(iRequest, iContentType);
writeLine(iRequest, "Content-Disposition: attachment; filename=" + iFileName);
writeLine(iRequest, "Date: " + new Date());
writeLine(iRequest, OHttpUtils.HEADER_CONTENT_LENGTH + (record.getSize()));
writeLine(iRequest, null);
record.toOutputStream(iRequest.channel.outStream);
iRequest.channel.flush();
