Remove extra spaces in commands

This commit is contained in:
Lan Tian
2020-05-17 22:11:34 +08:00
parent b83c12224f
commit 4df9006c81
3 changed files with 4 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ func webBackendCommunicator(endpoint string, command string) func(w http.Respons
} else {
backendCommand = backendCommandPrimitive
}
backendCommand = strings.TrimSpace(backendCommand)
templateHeader(w, r, "Bird-lg Go - "+html.EscapeString(endpoint+" "+backendCommand))