提交 fa1e2cc7 编写于 作者: A Alexey Milovidov

dbms: support for HEAD method in /ping [#METR-18208].

上级 04b0f73c
......@@ -205,7 +205,8 @@ public:
if (request.getURI().find('?') != std::string::npos || request.getMethod() == Poco::Net::HTTPRequest::HTTP_POST)
return new HandlerType(server);
else if (request.getMethod() == Poco::Net::HTTPRequest::HTTP_GET)
else if (request.getMethod() == Poco::Net::HTTPRequest::HTTP_GET
|| request.getMethod() == Poco::Net::HTTPRequest::HTTP_HEAD)
return new PingRequestHandler();
else
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册