fix X-ClickHouse-Exception-Code

This commit is contained in:
Yakov Olkhovskiy 2023-10-31 01:10:37 +00:00
parent 9f4be7e847
commit 43c2c83ae2

View File

@ -148,7 +148,7 @@ void WriteBufferFromHTTPServerResponse::setExceptionCode(int exception_code_)
if (headers_started_sending)
exception_code = exception_code_;
else
response.set("X-ClickHouse-Exception-Code", toString<int>(exception_code));
response.set("X-ClickHouse-Exception-Code", toString<int>(exception_code_));
}
WriteBufferFromHTTPServerResponse::~WriteBufferFromHTTPServerResponse()