mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
refactor
This commit is contained in:
parent
473f7bee3a
commit
12f59f2dca
@ -18,9 +18,6 @@
|
||||
first_or_random - if first replica one has higher number of errors, pick a random one from replicas with minimum number of errors.
|
||||
-->
|
||||
<load_balancing>random</load_balancing>
|
||||
|
||||
<!-- Turn on this setting for CORS headers. -->
|
||||
<!-- add_http_cors_header>1</add_http_cors_header -->
|
||||
</default>
|
||||
|
||||
<!-- Profile that allows only read queries. -->
|
||||
|
@ -750,8 +750,8 @@ void HTTPHandler::processQuery(
|
||||
/// are some headers to be sent, and the client passed Origin header.
|
||||
if (config.has("http_options_response") && !request.get("Origin", "").empty())
|
||||
tryAddHeadersFromConfig(response, config);
|
||||
else if (settings.add_http_cors_header)
|
||||
used_output.out->addHeaderCORS(settings.add_http_cors_header && !request.get("Origin", "").empty());
|
||||
else if (settings.add_http_cors_header && !request.get("Origin", "").empty())
|
||||
used_output.out->addHeaderCORS(true);
|
||||
|
||||
auto append_callback = [context = context] (ProgressCallback callback)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user