message: Change proposed by Leonid
diff: @@ -130,8 +130,14 @@ void Response::send(data::stream::OutputStream* stream,
  if(contentEncoderProvider == nullptr) {
  - if (bodySize >= 0 && m_status != Status::CODE_206) {
  + if (bodySize >= 0) {
  + if(m_body->getKnownData() == nullptr) {
  + headersWriteBuffer->flushToStream(stream);
  + /* Reuse headers buffer */
  + /* Transfer without chunked encoder */
  + data::stream::transfer(m_body, stream, 0, headersWriteBuffer->getData(), headersWriteBuffer->getCapacity());
  + } else {
  if (bodySize + headersWriteBuffer->getCurrentPosition() < headersWriteBuffer->getCapacity()) {
  headersWriteBuffer->writeSimple(m_body->getKnownData(), bodySize);
  headersWriteBuffer->flushToStream(stream);
  @@ -139,7 +145,7 @@ void Response::send(data::stream::OutputStream* stream,
  headersWriteBuffer->flushToStream(stream);
  stream->writeExactSizeDataSimple(m_body->getKnownData(), bodySize);
  }
  -
  + }
  } else {
  headersWriteBuffer->flushToStream(stream);
  