diff --git a/cmd/web.go b/cmd/web.go index e7c15bbf0..bdbb9c6e2 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -172,6 +172,8 @@ func runWeb(c *cli.Context) error { bindIgnErr := binding.BindIgnErr + m.SetAutoHead(true) + // FIXME: not all routes need go through same middlewares. // Especially some AJAX requests, we can reduce middleware number to improve performance. // Routers.