HttpBinaryCacheStore: Remove *all* trailing slashes

(cherry picked from commit 850c9a6caf)
This commit is contained in:
Robert Hensing 2024-03-24 00:46:15 +01:00
parent d1848506f8
commit 45d900f5c2

View File

@ -49,7 +49,7 @@ public:
, BinaryCacheStore(params)
, cacheUri(scheme + "://" + _cacheUri)
{
if (cacheUri.back() == '/')
while (!cacheUri.empty() && cacheUri.back() == '/')
cacheUri.pop_back();
diskCache = getNarInfoDiskCache();