summaryrefslogtreecommitdiff
path: root/src/DownloadEngine.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/DownloadEngine.cc')
-rw-r--r--src/DownloadEngine.cc10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/DownloadEngine.cc b/src/DownloadEngine.cc
index 9393857f..03250d6c 100644
--- a/src/DownloadEngine.cc
+++ b/src/DownloadEngine.cc
@@ -311,16 +311,12 @@ std::string createSockPoolKey
std::string key;
if(!username.empty()) {
key += util::percentEncode(username);
- key += '@';
+ key += "@";
}
key += host;
- key += A2STR::COLON_C;
- key += util::uitos(port);
+ key += fmt(":%u", port);
if(!proxyhost.empty()) {
- key += A2STR::SLASH_C;
- key += proxyhost;
- key += A2STR::COLON_C;
- key += util::uitos(proxyport);
+ key += fmt("/%s:%u", proxyhost.c_str(), proxyport);
}
return key;
}