HttpBinaryCacheStore: Remove *all* trailing slashes

This commit is contained in:
Robert Hensing 2024-03-24 00:46:15 +01:00
parent dd26f41379
commit 850c9a6caf

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();