mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Fix tail detection
This commit is contained in:
parent
fa88954e56
commit
fff18f78db
@ -39,7 +39,7 @@ inline StringRef getURLHost(const char * data, size_t size)
|
||||
|
||||
if (pos != data)
|
||||
{
|
||||
StringRef scheme = getURLScheme(data, end - pos);
|
||||
StringRef scheme = getURLScheme(data, pos - data - 2);
|
||||
Pos scheme_end = data + scheme.size;
|
||||
if (scheme.size && (pos - scheme_end != 3 || *scheme_end != ':'))
|
||||
return StringRef{};
|
||||
|
Loading…
Reference in New Issue
Block a user