sendResponseHeaders(iRequest, iContentType, iKeepAlive);
if (iHeaders != null)
writeLine(iRequest, iHeaders);
final String sessId = iRequest.sessionId != null ? iRequest.sessionId : "-";
writeLine(iRequest, "Set-Cookie: OSESSIONID=" + sessId + "; Path=/; HttpOnly");
<BUG>writeLine(iRequest, OHttpUtils.CONTENT_LENGTH + (empty ? 0 : content.length()));
</BUG>
writeLine(iRequest, null);
if (!empty)
writeContent(iRequest, content);

sendResponseHeaders(iRequest, iContentType, iKeepAlive);
if (iHeaders != null)
writeLine(iRequest, iHeaders);
final String sessId = iRequest.sessionId != null ? iRequest.sessionId : "-";
writeLine(iRequest, "Set-Cookie: OSESSIONID=" + sessId + "; Path=/; HttpOnly");
writeLine(iRequest, OHttpUtils.HEADER_CONTENT_LENGTH + (empty ? 0 : content.length()));
writeLine(iRequest, null);
if (!empty)
writeContent(iRequest, content);
