mirror of
https://github.com/tinode/chat.git
synced 2026-05-07 20:12:42 +00:00
fix: incorrect use of server status path from flag
This commit is contained in:
+1
-1
@@ -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
@@ -766,7 +766,7 @@ func main() {
|
||||
}
|
||||
|
||||
sspath := *serverStatusPath
|
||||
if sspath == "" || sspath == "-" {
|
||||
if sspath == "" {
|
||||
sspath = config.ServerStatusPath
|
||||
}
|
||||
if sspath != "" && sspath != "-" {
|
||||
|
||||
Reference in New Issue
Block a user