first attempt

This commit is contained in:
millb 2020-01-22 19:32:18 +03:00
parent e6cf8b675f
commit 7c6312fcb2

View File

@ -610,6 +610,7 @@ void HTTPHandler::trySendExceptionToClient(const std::string & s, int exception_
{
try
{
response.set("X-ClickHouse-Exception-Code", toString<int>(exception_code));
/// If HTTP method is POST and Keep-Alive is turned on, we should read the whole request body
/// to avoid reading part of the current request body in the next request.
if (request.getMethod() == Poco::Net::HTTPRequest::HTTP_POST