Browse Source

fix: hurl dump with port (#635)

pxy-fcx 1 year ago
parent
commit
92d5465916
1 changed files with 1 additions and 1 deletions
  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