mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 09:10:48 +00:00
dbms: fixed tiny issues [#CONV-2944].
This commit is contained in:
parent
7f2fe9f936
commit
64cf640e8a
@ -48,7 +48,12 @@ public:
|
||||
~WriteBufferFromHTTPServerResponse()
|
||||
{
|
||||
if (!std::uncaught_exception())
|
||||
{
|
||||
if (!ostr)
|
||||
ostr = &response.send();
|
||||
|
||||
next();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -41,7 +41,7 @@ Poco::Net::HTTPRequestHandler * HTTPRequestHandlerFactory::createRequestHandler(
|
||||
<< ", Address: " << request.clientAddress().toString()
|
||||
<< ", User-Agent: " << (request.has("User-Agent") ? request.get("User-Agent") : "none"));
|
||||
|
||||
if (request.getURI().find('?') != std::string::npos)
|
||||
if (request.getURI().find('?') != std::string::npos || request.getMethod() == Poco::Net::HTTPRequest::HTTP_POST)
|
||||
return new HTTPHandler(server);
|
||||
else if (request.getMethod() == Poco::Net::HTTPRequest::HTTP_GET)
|
||||
return new PingRequestHandler();
|
||||
|
Loading…
Reference in New Issue
Block a user