浏览代码

fix: hurl dump with port (#635)

pxy-fcx 1 年之前
父节点
当前提交
92d5465916
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cpputil/hurl.cpp

+ 1 - 1
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