diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2022-11-03 20:48:05 +0100 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2022-11-03 22:10:47 +0100 |
commit | 072cf36daaebad30dfa66c63991efb8b9e629033 (patch) | |
tree | 44f1c11df7b74e50863e8ec20529e16696db8496 | |
parent | a862e32a61e7f3f9d7ad946cf050f6a06b75a4a1 (diff) | |
download | ccache-072cf36daaebad30dfa66c63991efb8b9e629033.tar.gz |
fix: Avoid redundant slash in HTTP storage URLs with subdirs
-rw-r--r-- | src/storage/remote/HttpStorage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage/remote/HttpStorage.cpp b/src/storage/remote/HttpStorage.cpp index fce8270f..284e1d72 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]); } } |