Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
8b9b149d
Commit
8b9b149d
authored
Sep 07, 2018
by
Elad
Committed by
Balint Gabor
Sep 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swarm/api/http: bzz-immutable wrong handler bug (#17602)
parent
70d31fb2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
server.go
swarm/api/http/server.go
+1
-1
server_test.go
swarm/api/http/server_test.go
+1
-1
No files found.
swarm/api/http/server.go
View file @
8b9b149d
...
@@ -129,7 +129,7 @@ func NewServer(api *api.API, corsString string) *Server {
...
@@ -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
.
Handle
Bzz
Get
),
defaultMiddlewares
...
,
defaultMiddlewares
...
,
),
),
})
})
...
...
swarm/api/http/server_test.go
View file @
8b9b149d
...
@@ -672,7 +672,7 @@ func testBzzGetPath(encrypted bool, t *testing.T) {
...
@@ -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"`
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment