summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routers/routes/web.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/routes/web.go b/routers/routes/web.go
index f2b68aa10a..1f860a6239 100644
--- a/routers/routes/web.go
+++ b/routers/routes/web.go
@@ -162,7 +162,8 @@ func WebRoutes() *web.Route {
}
// Removed: toolbox.Toolboxer middleware will provide debug informations which seems unnecessary
r.Use(context.Contexter())
- // Removed: SetAutoHead allow a get request redirect to head if get method is not exist
+ // GetHead allows a HEAD request redirect to GET if HEAD method is not defined for that route
+ r.Use(middleware.GetHead)
if setting.EnableAccessLog {
r.Use(context.AccessLogger())