fix: incorrect use of server status path from flag

This commit is contained in:
or-else
2025-11-16 15:06:24 +03:00
parent fea5897d70
commit 9ae8678f39
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -766,7 +766,7 @@ func main() {
}
sspath := *serverStatusPath
if sspath == "" || sspath == "-" {
if sspath == "" {
sspath = config.ServerStatusPath
}
if sspath != "" && sspath != "-" {