mirror of https://github.com/gogs/gogs.git
web: support HTTP HEAD requests (#2857)
parent
ade8aab43f
commit
4a669f5478
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue