aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/api/http/middleware.go
diff options
context:
space:
mode:
authorAnton Evangelatov <anton.evangelatov@gmail.com>2018-11-06 19:34:34 +0800
committerGitHub <noreply@github.com>2018-11-06 19:34:34 +0800
commit53eb4e0b0fffdc105fbe9f5eed671b96de6e2ba1 (patch)
tree595bdd79a646c82e46067e7ed522302872efde51 /swarm/api/http/middleware.go
parentbaee850471603d7fbf37eed0074c9de01df92ee7 (diff)
downloaddexon-53eb4e0b0fffdc105fbe9f5eed671b96de6e2ba1.tar.gz
dexon-53eb4e0b0fffdc105fbe9f5eed671b96de6e2ba1.tar.zst
dexon-53eb4e0b0fffdc105fbe9f5eed671b96de6e2ba1.zip
swarm/api: unexport Respond methods (#18037)
Diffstat (limited to 'swarm/api/http/middleware.go')
-rw-r--r--swarm/api/http/middleware.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/swarm/api/http/middleware.go b/swarm/api/http/middleware.go
index 3b2dcc7d5..ccc040c54 100644
--- a/swarm/api/http/middleware.go
+++ b/swarm/api/http/middleware.go
@@ -50,7 +50,7 @@ func ParseURI(h http.Handler) http.Handler {
uri, err := api.Parse(strings.TrimLeft(r.URL.Path, "/"))
if err != nil {
w.WriteHeader(http.StatusBadRequest)
- RespondError(w, r, fmt.Sprintf("invalid URI %q", r.URL.Path), http.StatusBadRequest)
+ respondError(w, r, fmt.Sprintf("invalid URI %q", r.URL.Path), http.StatusBadRequest)
return
}
if uri.Addr != "" && strings.HasPrefix(uri.Addr, "0x") {