mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-08 16:24:51 -04:00
Oops, we needed that, but for a different reason than the comment said. So put the test back but fix the comment
This commit is contained in:
parent
393cd17e53
commit
ff2781e3b4
1 changed files with 4 additions and 4 deletions
|
|
@ -154,11 +154,11 @@ func (b *CubbyholeBackend) handleList(
|
|||
return nil, fmt.Errorf("[ERR] cubbyhole list: Client token empty")
|
||||
}
|
||||
|
||||
// Right now we only handle directories, so ensure it ends with /
|
||||
// Unlike passthrough, we'll never have a case of listing "/" so we don't
|
||||
// need to check if the path is empty
|
||||
// Right now we only handle directories, so ensure it ends with / We also
|
||||
// check if it's empty so we don't end up doing a listing on '<client
|
||||
// token>//'
|
||||
path := req.Path
|
||||
if !strings.HasSuffix(path, "/") {
|
||||
if path != "" && !strings.HasSuffix(path, "/") {
|
||||
path = path + "/"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue