diff --git a/server/http.go b/server/http.go index fbd2bce4..eb77dbab 100644 --- a/server/http.go +++ b/server/http.go @@ -200,7 +200,7 @@ func (w *errorResponseWriter) Write(p []byte) (n int, err error) { return w.ResponseWriter.Write(p) } -// Handler which deploys errorResponseWriter +// httpErrorHandler to respond with JSON_formatted error message for static content. func httpErrorHandler(h http.Handler) http.Handler { return http.HandlerFunc( func(w http.ResponseWriter, r *http.Request) { diff --git a/server/main.go b/server/main.go index 0c93c927..c8d24f52 100644 --- a/server/main.go +++ b/server/main.go @@ -766,7 +766,7 @@ func main() { } sspath := *serverStatusPath - if sspath == "" || sspath == "-" { + if sspath == "" { sspath = config.ServerStatusPath } if sspath != "" && sspath != "-" {