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

pull/17615/merge
Elad 6 years ago committed by Balint Gabor
parent 70d31fb278
commit 8b9b149d54
  1. 2
      swarm/api/http/server.go
  2. 2
      swarm/api/http/server_test.go

@ -129,7 +129,7 @@ func NewServer(api *api.API, corsString string) *Server {
}) })
mux.Handle("/bzz-immutable:/", methodHandler{ mux.Handle("/bzz-immutable:/", methodHandler{
"GET": Adapt( "GET": Adapt(
http.HandlerFunc(server.HandleGet), http.HandlerFunc(server.HandleBzzGet),
defaultMiddlewares..., defaultMiddlewares...,
), ),
}) })

@ -672,7 +672,7 @@ func testBzzGetPath(encrypted bool, t *testing.T) {
nonhashresponses := []string{ nonhashresponses := []string{
`cannot resolve name: no DNS to resolve name: "name"`, `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"`, `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"`,

Loading…
Cancel
Save