web: support HTTP HEAD requests (#2857)

pull/4940/merge
Unknwon 2018-03-06 01:21:13 -05:00
parent ade8aab43f
commit 4a669f5478
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
1 changed files with 2 additions and 0 deletions

View File

@ -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.