mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 04:22:03 +00:00
fix
This commit is contained in:
parent
5ef24494f4
commit
6ed150b9d3
@ -37,7 +37,7 @@ std::shared_ptr<WriteBufferFromPocoSocket> HTTPServerResponse::send()
|
||||
// Send header
|
||||
Poco::Net::HTTPHeaderOutputStream hs(session);
|
||||
write(hs);
|
||||
// Don't create stream - it's a header-only response
|
||||
stream = std::make_shared<WriteBufferFromPocoSocket>(session.socket(), write_metric);
|
||||
}
|
||||
else if (getChunkedTransferEncoding())
|
||||
{
|
||||
|
@ -913,7 +913,7 @@ try
|
||||
{
|
||||
/// In case data has already been sent, like progress headers, try using the output buffer to
|
||||
/// set the exception code since it will be able to append it if it hasn't finished writing headers
|
||||
if (response.sent() && used_output.out)
|
||||
if (response.sent() && used_output.out_holder)
|
||||
used_output.out_holder->setExceptionCode(exception_code);
|
||||
else
|
||||
response.set("X-ClickHouse-Exception-Code", toString<int>(exception_code));
|
||||
|
Loading…
Reference in New Issue
Block a user