]> source.dussan.org Git - gitea.git/commitdiff
Add AutoHead functionality. (#5186)
authorzeripath <art27@cantab.net>
Tue, 30 Oct 2018 15:08:49 +0000 (15:08 +0000)
committertechknowlogick <hello@techknowlogick.com>
Tue, 30 Oct 2018 15:08:49 +0000 (11:08 -0400)
Fixes #5153

routers/routes/routes.go

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