mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-17 02:36:17 +01:00
strip whitespace from TOKEN_FILE (#984)
This commit is contained in:
@@ -85,7 +85,7 @@ func getToken() (string, error) {
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return string(tokenBytes), nil
|
||||
return strings.TrimSpace(string(tokenBytes)), nil
|
||||
}
|
||||
|
||||
// getOptions returns the WebSocket client options, creating them if necessary.
|
||||
|
||||
Reference in New Issue
Block a user