aboutsummaryrefslogtreecommitdiff
path: root/cmd/web.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go
index e7c15bbf..bdbb9c6e 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.