From 92d5465916a314b4b9dbdd9a0a2001ec73cd4fdd Mon Sep 17 00:00:00 2001 From: pxy-fcx Date: Wed, 6 Nov 2024 15:13:52 +0800 Subject: [PATCH] fix: hurl dump with port (#635) --- cpputil/hurl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpputil/hurl.cpp b/cpputil/hurl.cpp index 3d9087307..c3f9024dc 100644 --- a/cpputil/hurl.cpp +++ b/cpputil/hurl.cpp @@ -163,7 +163,7 @@ const std::string& HUrl::dump() { if (port != 80 && port != 443) { char buf[16] = {0}; snprintf(buf, sizeof(buf), ":%d", port); - url += port; + url += buf; } } // /path