Skip to content

Commit

Permalink
Addition to prev. revision [#METR-23279].
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-milovidov committed Oct 24, 2016
1 parent 1527176 commit 72f0dba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dbms/src/Server/HTTPHandler.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 72f0dba

Please sign in to comment.