Don't pass empty vector to ConcatReadBuffer

This commit is contained in:
Ivan Lezhankin 2021-02-04 18:59:54 +03:00
parent b0f400ca1b
commit ac4c3a6b27

View File

@ -219,8 +219,11 @@ void HTTPHandler::pushDelayedResults(Output & used_output)
}
}
ConcatReadBuffer concat_read_buffer(read_buffers_raw_ptr);
copyData(concat_read_buffer, *used_output.out_maybe_compressed);
if (!read_buffers_raw_ptr.empty())
{
ConcatReadBuffer concat_read_buffer(read_buffers_raw_ptr);
copyData(concat_read_buffer, *used_output.out_maybe_compressed);
}
}