Update HTTPHandler.cpp

This commit is contained in:
alexey-milovidov 2018-06-09 15:24:18 +03:00 committed by GitHub
parent 15cc44d894
commit b159bf1605
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -422,7 +422,7 @@ void HTTPHandler::processQuery(
std::unique_ptr<ReadBuffer> in; std::unique_ptr<ReadBuffer> in;
// Used in case of POST request with form-data, but it not to be expectd to be deleted after that scope // Used in case of POST request with form-data, but it not to be expectd to be deleted after that scope
std::string full_query = ""; std::string full_query;
/// Support for "external data for query processing". /// Support for "external data for query processing".
if (startsWith(request.getContentType().data(), "multipart/form-data")) if (startsWith(request.getContentType().data(), "multipart/form-data"))
@ -441,7 +441,6 @@ void HTTPHandler::processQuery(
} }
in = std::make_unique<ReadBufferFromString>(full_query); in = std::make_unique<ReadBufferFromString>(full_query);
/// Erase unneeded parameters to avoid confusing them later with context settings or query /// Erase unneeded parameters to avoid confusing them later with context settings or query
/// parameters. /// parameters.
for (const auto & it : handler.names) for (const auto & it : handler.names)