From 5f3dbbc81f878362279b2b21de26706188c129b7 Mon Sep 17 00:00:00 2001 From: AnilChinchawale Date: Tue, 5 Feb 2019 04:52:09 +0530 Subject: [PATCH] swarm updated --- swarm/api/http/error.go | 2 +- swarm/api/http/error_templates.go | 6 +++--- swarm/api/http/server_test.go | 6 +++--- swarm/api/http/templates.go | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/swarm/api/http/error.go b/swarm/api/http/error.go index 9a65412cf9..2f77f2784a 100644 --- a/swarm/api/http/error.go +++ b/swarm/api/http/error.go @@ -71,7 +71,7 @@ func initErrHandling() { multipleChoicesPage := GetMultipleChoicesErrorPage() //map the codes to the available pages tnames := map[int]string{ - 0: genErrPage, //default + 0: genErrPage, //default http.StatusBadRequest: genErrPage, http.StatusNotFound: notFoundPage, http.StatusMultipleChoices: multipleChoicesPage, diff --git a/swarm/api/http/error_templates.go b/swarm/api/http/error_templates.go index cc9b996ba4..a3e25ec0ad 100644 --- a/swarm/api/http/error_templates.go +++ b/swarm/api/http/error_templates.go @@ -37,7 +37,7 @@ func GetGenericErrorPage() string { - +