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 }