]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Avoid redundant slash in HTTP storage URLs with subdirs
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 3 Nov 2022 19:48:05 +0000 (20:48 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 3 Nov 2022 21:10:47 +0000 (22:10 +0100)
src/storage/remote/HttpStorage.cpp

index fce8270fc17deb5f4163ad55179f1e7020978327..284e1d72bf8641130e76814f163693e3e8d112d7 100644 (file)
@@ -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]);
   }
   }