aboutsummaryrefslogtreecommitdiffstats
path: root/swarm
diff options
context:
space:
mode:
authorElad <theman@elad.im>2018-08-22 22:53:33 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-08-22 22:53:33 +0800
commitf34f361ca6635690f6dd81d6f3bddfff498e9fd6 (patch)
treeb8f823a7ef1138e7af1562c001506f56a0757579 /swarm
parent2993fb519d7bb70163765c33bc95c5260ecb003a (diff)
downloaddexon-f34f361ca6635690f6dd81d6f3bddfff498e9fd6.tar
dexon-f34f361ca6635690f6dd81d6f3bddfff498e9fd6.tar.gz
dexon-f34f361ca6635690f6dd81d6f3bddfff498e9fd6.tar.bz2
dexon-f34f361ca6635690f6dd81d6f3bddfff498e9fd6.tar.lz
dexon-f34f361ca6635690f6dd81d6f3bddfff498e9fd6.tar.xz
dexon-f34f361ca6635690f6dd81d6f3bddfff498e9fd6.tar.zst
dexon-f34f361ca6635690f6dd81d6f3bddfff498e9fd6.zip
swarm/api/http: fixed resolver bug (#17483)
Diffstat (limited to 'swarm')
-rw-r--r--swarm/api/http/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/swarm/api/http/server.go b/swarm/api/http/server.go
index b5ea0c23d..2aa196396 100644
--- a/swarm/api/http/server.go
+++ b/swarm/api/http/server.go
@@ -820,7 +820,7 @@ func (s *Server) HandleGetFile(w http.ResponseWriter, r *http.Request) {
manifestAddr := uri.Address()
if manifestAddr == nil {
- manifestAddr, err = s.api.ResolveURI(r.Context(), uri, credentials)
+ manifestAddr, err = s.api.Resolve(r.Context(), uri.Addr)
if err != nil {
getFileFail.Inc(1)
RespondError(w, r, fmt.Sprintf("cannot resolve %s: %s", uri.Addr, err), http.StatusNotFound)