summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2018-10-30 15:08:49 +0000
committertechknowlogick <hello@techknowlogick.com>2018-10-30 11:08:49 -0400
commita3e084716ee66f184ed24cdd35296abe0e6f6d80 (patch)
treee9125eb232080cd83e69a7ce6974165879fdc344
parent220ee6ae4296a9271a6d9b1825b00ed6f3d66659 (diff)
downloadgitea-a3e084716ee66f184ed24cdd35296abe0e6f6d80.tar.gz
gitea-a3e084716ee66f184ed24cdd35296abe0e6f6d80.zip
Add AutoHead functionality. (#5186)
Fixes #5153
-rw-r--r--routers/routes/routes.go1
1 files changed, 1 insertions, 0 deletions
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
}