swarm/api/http: bzz-immutable wrong handler bug (#17602)

This commit is contained in:
Elad 2018-09-07 15:23:29 +02:00 committed by Balint Gabor
parent 70d31fb278
commit 8b9b149d54
2 changed files with 2 additions and 2 deletions

@ -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...,
),
})

@ -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"`,