From 04422b31b6d96106385e8e64b429b56828a751ac Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sun, 4 Dec 2022 16:21:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=9D=9E=E6=B3=95url?= =?UTF-8?q?=E6=8F=90=E7=A4=BA:#2129?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Common/Parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Common/Parser.cpp b/src/Common/Parser.cpp index f57fcca3..34fbd765 100644 --- a/src/Common/Parser.cpp +++ b/src/Common/Parser.cpp @@ -220,7 +220,7 @@ void splitUrl(const std::string &url, std::string &host, uint16_t &port) { checkHost(host); return; } - CHECK(pos > 0, "invalid url:", port); + CHECK(pos > 0, "invalid url:", url); CHECK(sscanf(url.data() + pos + 1, "%" SCNu16, &port) == 1, "parse port from url failed:", url); host = url.substr(0, pos); checkHost(host);