From bf693b6a0c99f813a64afe13c9be766bb25545d4 Mon Sep 17 00:00:00 2001 From: ishanray Date: Tue, 12 Nov 2019 09:14:57 -0500 Subject: [PATCH] Fix typo by removing extra p in function name (#12996) --- web/static.go | 2 +- web/unsupported_browser.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/static.go b/web/static.go index 57c1126a4f..9f20f2958a 100644 --- a/web/static.go +++ b/web/static.go @@ -60,7 +60,7 @@ func (w *Web) InitStatic() { func root(c *Context, w http.ResponseWriter, r *http.Request) { if !CheckClientCompatability(r.UserAgent()) { - renderUnsuppportedBrowser(c.App, w, r) + renderUnsupportedBrowser(c.App, w, r) return } diff --git a/web/unsupported_browser.go b/web/unsupported_browser.go index db02ab8a39..39de6ddb2c 100644 --- a/web/unsupported_browser.go +++ b/web/unsupported_browser.go @@ -44,7 +44,7 @@ type SystemBrowser struct { 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") page := utils.NewHTMLTemplate(app.HTMLTemplates(), "unsupported_browser")