mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 04:22:03 +00:00
fix X-ClickHouse-Exception-Code
This commit is contained in:
parent
9f4be7e847
commit
43c2c83ae2
@ -148,7 +148,7 @@ void WriteBufferFromHTTPServerResponse::setExceptionCode(int exception_code_)
|
|||||||
if (headers_started_sending)
|
if (headers_started_sending)
|
||||||
exception_code = exception_code_;
|
exception_code = exception_code_;
|
||||||
else
|
else
|
||||||
response.set("X-ClickHouse-Exception-Code", toString<int>(exception_code));
|
response.set("X-ClickHouse-Exception-Code", toString<int>(exception_code_));
|
||||||
}
|
}
|
||||||
|
|
||||||
WriteBufferFromHTTPServerResponse::~WriteBufferFromHTTPServerResponse()
|
WriteBufferFromHTTPServerResponse::~WriteBufferFromHTTPServerResponse()
|
||||||
|
Loading…
Reference in New Issue
Block a user