]> source.dussan.org Git - gitea.git/commit
Fix missing stylesheets on installation page (#13736)
authorSimon <simon@hilchenba.ch>
Sat, 28 Nov 2020 17:52:30 +0000 (18:52 +0100)
committerGitHub <noreply@github.com>
Sat, 28 Nov 2020 17:52:30 +0000 (19:52 +0200)
commit8c996c65053296e997718265c4f4cb08c2d9dffb
tree22cda270c4c60d9f0a7863cfb8519c18090aa588
parent1e5247d424de7f8a480c73b0b72119ae5482edf1
Fix missing stylesheets on installation page (#13736)

When running gitea for the first time, the stylesheets for the
installation page are broken since the middleware that statically serves
stylesheets does not get executed by chi. This is because if no handlers
are registered in chi, it will drop all middleware.

This commit introduces a "dummy" handler to deal with that quirk.

Closes #13725

Thanks: Lunny Xiao <xiaolunwen@gmail.com> for finding the quirk

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
routers/routes/chi.go