]> source.dussan.org Git - gitea.git/commit
Adding Chi's GetHead middleware (#14541)
authorFarid AYOUJIL <faridtsl@users.noreply.github.com>
Tue, 2 Feb 2021 08:53:42 +0000 (09:53 +0100)
committerGitHub <noreply@github.com>
Tue, 2 Feb 2021 08:53:42 +0000 (10:53 +0200)
commit1737a76e1ff50a864edbef8d27ebd915cb954c89
treefb6b5313569fc7a4dad615c4bedb5806ac7629f8
parent3f332a99195b3a0a988b75bd8fb6218651fc5d90
 Adding Chi's GetHead middleware (#14541)

Before moving to Chi, HEAD requests were automatically answered by GET
handlers (SetAutoHead(true) from macaron was used).

This Change will restore the previous behaviour.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
routers/routes/web.go