aboutsummaryrefslogtreecommitdiffstats
path: root/swarm
diff options
context:
space:
mode:
authorElad <theman@elad.im>2018-09-07 21:23:29 +0800
committerBalint Gabor <balint.g@gmail.com>2018-09-07 21:23:29 +0800
commit8b9b149d5412dd3c775caf4fc3df39ebad90184f (patch)
treec42547a7e923f156441a9d8c2a60020d60dfea8a /swarm
parent70d31fb27842b047582a6557529b2234de1a4a8d (diff)
downloaddexon-8b9b149d5412dd3c775caf4fc3df39ebad90184f.tar
dexon-8b9b149d5412dd3c775caf4fc3df39ebad90184f.tar.gz
dexon-8b9b149d5412dd3c775caf4fc3df39ebad90184f.tar.bz2
dexon-8b9b149d5412dd3c775caf4fc3df39ebad90184f.tar.lz
dexon-8b9b149d5412dd3c775caf4fc3df39ebad90184f.tar.xz
dexon-8b9b149d5412dd3c775caf4fc3df39ebad90184f.tar.zst
dexon-8b9b149d5412dd3c775caf4fc3df39ebad90184f.zip
swarm/api/http: bzz-immutable wrong handler bug (#17602)
Diffstat (limited to 'swarm')
-rw-r--r--swarm/api/http/server.go2
-rw-r--r--swarm/api/http/server_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/swarm/api/http/server.go b/swarm/api/http/server.go
index 2aa196396..af1269b93 100644
--- a/swarm/api/http/server.go
+++ b/swarm/api/http/server.go
@@ -129,7 +129,7 @@ func NewServer(api *api.API, corsString string) *Server {
})
mux.Handle("/bzz-immutable:/", methodHandler{
"GET": Adapt(
- http.HandlerFunc(server.HandleGet),
+ http.HandlerFunc(server.HandleBzzGet),
defaultMiddlewares...,
),
})
diff --git a/swarm/api/http/server_test.go b/swarm/api/http/server_test.go
index 2b6a97ebd..efefa9fae 100644
--- a/swarm/api/http/server_test.go
+++ b/swarm/api/http/server_test.go
@@ -672,7 +672,7 @@ func testBzzGetPath(encrypted bool, t *testing.T) {
nonhashresponses := []string{
`cannot resolve name: no DNS to resolve name: "name"`,
- `cannot resolve nonhash: immutable address not a content hash: "nonhash"`,
+ `cannot resolve nonhash: no DNS to resolve name: "nonhash"`,
`cannot resolve nonhash: no DNS to resolve name: "nonhash"`,
`cannot resolve nonhash: no DNS to resolve name: "nonhash"`,
`cannot resolve nonhash: no DNS to resolve name: "nonhash"`,