mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
Update HTTPHandler.cpp
This commit is contained in:
parent
15cc44d894
commit
b159bf1605
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user