Skip to content

Commit 8b9b149

Browse files
acudgbalint
authored andcommitted
swarm/api/http: bzz-immutable wrong handler bug (#17602)
1 parent 70d31fb commit 8b9b149

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎swarm/api/http/server.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func NewServer(api *api.API, corsString string) *Server {
129129
})
130130
mux.Handle("/bzz-immutable:/", methodHandler{
131131
"GET": Adapt(
132-
http.HandlerFunc(server.HandleGet),
132+
http.HandlerFunc(server.HandleBzzGet),
133133
defaultMiddlewares...,
134134
),
135135
})

‎swarm/api/http/server_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ func testBzzGetPath(encrypted bool, t *testing.T) {
672672

673673
nonhashresponses := []string{
674674
`cannot resolve name: no DNS to resolve name: "name"`,
675-
`cannot resolve nonhash: immutable address not a content hash: "nonhash"`,
675+
`cannot resolve nonhash: no DNS to resolve name: "nonhash"`,
676676
`cannot resolve nonhash: no DNS to resolve name: "nonhash"`,
677677
`cannot resolve nonhash: no DNS to resolve name: "nonhash"`,
678678
`cannot resolve nonhash: no DNS to resolve name: "nonhash"`,

0 commit comments

Comments
 (0)