mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Fixing check for HTTP POST request
This commit is contained in:
parent
6830954cd3
commit
1e86fb298a
@ -729,8 +729,8 @@ void HTTPHandler::processQuery(
|
||||
/// to some other value.
|
||||
const auto & settings = context->getSettingsRef();
|
||||
|
||||
/// Only readonly queries are allowed for HTTP GET requests.
|
||||
if (request.getMethod() == HTTPServerRequest::HTTP_GET)
|
||||
/// Anything else beside HTTP POST should be readonly queries.
|
||||
if (request.getMethod() != HTTPServerRequest::HTTP_POST)
|
||||
{
|
||||
if (settings.readonly == 0)
|
||||
context->setSetting("readonly", 2);
|
||||
|
Loading…
Reference in New Issue
Block a user