This commit is contained in:
Till Faelligen 2024-01-17 16:39:06 +01:00
parent 1d8ee75fa4
commit e2fb34eb6f
No known key found for this signature in database
GPG key ID: ACCDC9606D472758

View file

@ -164,7 +164,7 @@ func SetupAndServeHTTP(
// We only need the files beneath the static/client/login folder.
sub, err := fs.Sub(loginFallback, "static/client/login")
if err != nil {
logrus.Panic("unable to read embedded files, this should never happen: %s", err)
logrus.Panicf("unable to read embedded files, this should never happen: %s", err)
}
// Serve a static page for login fallback
routers.Static.PathPrefix("/client/login/").Handler(http.StripPrefix("/_matrix/static/client/login/", http.FileServer(http.FS(sub))))