mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Addition to prev. revision [#METR-23279].
This commit is contained in:
parent
1527176378
commit
72f0dba30d
@ -253,6 +253,11 @@ void HTTPHandler::processQuery(
|
||||
client_info.query_kind = ClientInfo::QueryKind::INITIAL_QUERY;
|
||||
client_info.interface = ClientInfo::Interface::HTTP;
|
||||
|
||||
/// Query sent through HTTP interface is initial.
|
||||
client_info.initial_user = client_info.current_user;
|
||||
client_info.initial_query_id = client_info.current_query_id;
|
||||
client_info.initial_address = client_info.current_address;
|
||||
|
||||
ClientInfo::HTTPMethod http_method = ClientInfo::HTTPMethod::UNKNOWN;
|
||||
if (request.getMethod() == Poco::Net::HTTPServerRequest::HTTP_GET)
|
||||
http_method = ClientInfo::HTTPMethod::GET;
|
||||
|
Loading…
Reference in New Issue
Block a user