mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-25 22:45:46 +03:00
* http: allow access to /__locales/ while installing
This commit is contained in:
parent
207e0236f7
commit
f3b41efff3
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue