From 072cf36daaebad30dfa66c63991efb8b9e629033 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Thu, 3 Nov 2022 20:48:05 +0100 Subject: [PATCH] fix: Avoid redundant slash in HTTP storage URLs with subdirs --- src/storage/remote/HttpStorage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); } } -- 2.47.2