mirror of
https://github.com/gogs/gogs.git
synced 2025-05-24 00:12:26 +00:00
web: support HTTP HEAD requests (#2857)
This commit is contained in:
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…
x
Reference in New Issue
Block a user