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

This commit is contained in:
Zahoor Mohamed 2016-12-24 11:11:06 +05:30
parent 79260a9351
commit f449a0b13d

View file

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