swarm: trouble loading manifest entries whose key ends in a slash '/' #3467

This commit is contained in:
Zahoor Mohamed 2016-12-24 12:01:04 +05:30
parent 3e3edcc465
commit 057f18c204

View file

@ -333,7 +333,7 @@ func RegularSlashes(path string) (res string) {
}
func (self *manifestTrie) getEntry(spath string) (entry *manifestTrieEntry, fullpath string) {
path := RegularSlashes(spath)
path := RegularSlashes(spath) + "/"
var pos int
quitC := make(chan bool)
entry, pos = self.findPrefixOf(path, quitC)