Fix typo by removing extra p in function name (#12996)
Этот коммит содержится в:
коммит произвёл
Ben Schumacher
родитель
111d076a86
Коммит
bf693b6a0c
@@ -60,7 +60,7 @@ func (w *Web) InitStatic() {
|
|||||||
func root(c *Context, w http.ResponseWriter, r *http.Request) {
|
func root(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
if !CheckClientCompatability(r.UserAgent()) {
|
if !CheckClientCompatability(r.UserAgent()) {
|
||||||
renderUnsuppportedBrowser(c.App, w, r)
|
renderUnsupportedBrowser(c.App, w, r)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ type SystemBrowser struct {
|
|||||||
MakeDefaultString string
|
MakeDefaultString string
|
||||||
}
|
}
|
||||||
|
|
||||||
func renderUnsuppportedBrowser(app *app.App, w http.ResponseWriter, r *http.Request) {
|
func renderUnsupportedBrowser(app *app.App, w http.ResponseWriter, r *http.Request) {
|
||||||
w.Header().Set("Cache-Control", "no-store")
|
w.Header().Set("Cache-Control", "no-store")
|
||||||
page := utils.NewHTMLTemplate(app.HTMLTemplates(), "unsupported_browser")
|
page := utils.NewHTMLTemplate(app.HTMLTemplates(), "unsupported_browser")
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user