From f3b41efff3f2eab3dc0a3683b05bb98f6048f6e0 Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Fri, 31 Jan 2020 14:09:04 +0300 Subject: [PATCH] * http: allow access to /__locales/ while installing --- home/helpers.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/home/helpers.go b/home/helpers.go index c00fcbc8..ec95aa67 100644 --- a/home/helpers.go +++ b/home/helpers.go @@ -111,8 +111,9 @@ func preInstallHandler(handler http.Handler) http.Handler { func postInstall(handler func(http.ResponseWriter, *http.Request)) func(http.ResponseWriter, *http.Request) { return func(w http.ResponseWriter, r *http.Request) { if config.firstRun && - !strings.HasPrefix(r.URL.Path, "/install.") && - r.URL.Path != "/favicon.png" { + !(strings.HasPrefix(r.URL.Path, "/install.") || + strings.HasPrefix(r.URL.Path, "/__locales/") || + r.URL.Path == "/favicon.png") { http.Redirect(w, r, "/install.html", http.StatusSeeOther) // should not be cacheable return }