From: Joel Rosdahl Date: Thu, 3 Nov 2022 19:48:05 +0000 (+0100) Subject: fix: Avoid redundant slash in HTTP storage URLs with subdirs X-Git-Tag: v4.7.3~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=072cf36daaebad30dfa66c63991efb8b9e629033;p=thirdparty%2Fccache.git fix: Avoid redundant slash in HTTP storage URLs with subdirs --- diff --git a/src/storage/remote/HttpStorage.cpp b/src/storage/remote/HttpStorage.cpp index fce8270fc..284e1d72b 100644 --- a/src/storage/remote/HttpStorage.cpp +++ b/src/storage/remote/HttpStorage.cpp @@ -262,7 +262,7 @@ HttpStorageBackend::get_entry_path(const Digest& key) const const auto key_str = key.to_string(); const uint8_t digits = 2; ASSERT(key_str.length() > digits); - return FMT("{}/{:.{}}/{}", m_url_path, key_str, digits, &key_str[digits]); + return FMT("{}{:.{}}/{}", m_url_path, key_str, digits, &key_str[digits]); } }