mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Fix tidy
This commit is contained in:
parent
3d5908b876
commit
8cf4c3bd3f
@ -20,14 +20,12 @@ namespace
|
||||
|
||||
class FunctionGetClientHTTPHeader : public IFunction, WithContext
|
||||
{
|
||||
private:
|
||||
|
||||
public:
|
||||
explicit FunctionGetClientHTTPHeader(ContextPtr context_)
|
||||
: WithContext(context_)
|
||||
{
|
||||
if (!getContext()->getSettingsRef().allow_get_client_http_header)
|
||||
throw Exception(ErrorCodes::FUNCTION_NOT_ALLOWED, "The function {} requires setting `allow_get_client_http_header` to be enabled.", getName());
|
||||
throw Exception(ErrorCodes::FUNCTION_NOT_ALLOWED, "The function getClientHTTPHeader requires setting `allow_get_client_http_header` to be enabled.");
|
||||
}
|
||||
|
||||
String getName() const override { return "getClientHTTPHeader"; }
|
||||
|
Loading…
Reference in New Issue
Block a user