Commit 6c34eb53 authored by gejun's avatar gejun

Not remove additional slashes after foo:// in naming service

parent 83c55dce
......@@ -378,8 +378,7 @@ static const char* ParseNamingServiceUrl(const char* url, char* protocol) {
protocol[p1 - url] = '\0';
const char* p2 = p1;
if (*++p2 == '/' && *++p2 == '/') {
for ( ; *p2 == '/'; ++p2);
return p2;
return p2 + 1;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment