mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 16:23:02 +00:00
HttpBinaryCacheStore: Remove *all* trailing slashes
(cherry picked from commit 850c9a6caf
)
This commit is contained in:
parent
d1848506f8
commit
45d900f5c2
@ -49,7 +49,7 @@ public:
|
||||
, BinaryCacheStore(params)
|
||||
, cacheUri(scheme + "://" + _cacheUri)
|
||||
{
|
||||
if (cacheUri.back() == '/')
|
||||
while (!cacheUri.empty() && cacheUri.back() == '/')
|
||||
cacheUri.pop_back();
|
||||
|
||||
diskCache = getNarInfoDiskCache();
|
||||
|
Loading…
Reference in New Issue
Block a user