From a3e084716ee66f184ed24cdd35296abe0e6f6d80 Mon Sep 17 00:00:00 2001 From: zeripath Date: Tue, 30 Oct 2018 15:08:49 +0000 Subject: [PATCH] Add AutoHead functionality. (#5186) Fixes #5153 --- routers/routes/routes.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/routes/routes.go b/routers/routes/routes.go index 4ca421065e..5e54934a36 100644 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -134,6 +134,7 @@ func NewMacaron() *macaron.Macaron { DisableDebug: !setting.EnablePprof, })) m.Use(context.Contexter()) + m.SetAutoHead(true) return m }