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,9 +219,12 @@ void HTTPHandler::pushDelayedResults(Output & used_output)
} }
} }
if (!read_buffers_raw_ptr.empty())
{
ConcatReadBuffer concat_read_buffer(read_buffers_raw_ptr); ConcatReadBuffer concat_read_buffer(read_buffers_raw_ptr);
copyData(concat_read_buffer, *used_output.out_maybe_compressed); copyData(concat_read_buffer, *used_output.out_maybe_compressed);
} }
}
HTTPHandler::HTTPHandler(IServer & server_, const std::string & name) HTTPHandler::HTTPHandler(IServer & server_, const std::string & name)