Add AutoHead functionality. (#5186)

Fixes #5153
tokarchuk/v1.17
zeripath 6 years ago committed by techknowlogick
parent 220ee6ae42
commit a3e084716e
  1. 1
      routers/routes/routes.go

@ -134,6 +134,7 @@ func NewMacaron() *macaron.Macaron {
DisableDebug: !setting.EnablePprof, DisableDebug: !setting.EnablePprof,
})) }))
m.Use(context.Contexter()) m.Use(context.Contexter())
m.SetAutoHead(true)
return m return m
} }

Loading…
Cancel
Save