Browse Source

Add AutoHead functionality. (#5186)

Fixes #5153
tags/v1.7.0-dev
zeripath 5 years ago
parent
commit
a3e084716e
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      routers/routes/routes.go

+ 1
- 0
routers/routes/routes.go View File

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


Loading…
Cancel
Save