From a2de3ad8a40ccf0ea913377ee8bf4da07946de91 Mon Sep 17 00:00:00 2001 From: zsfelfoldi Date: Tue, 2 Jun 2015 16:55:26 +0200 Subject: [PATCH] fixed upload index --- bzz/api.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bzz/api.go b/bzz/api.go index a8ef586d3f..d0d8965d6e 100644 --- a/bzz/api.go +++ b/bzz/api.go @@ -292,8 +292,6 @@ func (self *Api) Upload(lpath, index string) (string, error) { return "", errors[i] } entry.Path = regularSlashes(entry.Path[start:]) - trie.addEntry(entry) - if entry.Path == index { ientry := &manifestTrieEntry{ Path: "", @@ -302,6 +300,7 @@ func (self *Api) Upload(lpath, index string) (string, error) { } trie.addEntry(ientry) } + trie.addEntry(entry) } err2 := trie.recalcAndStore()