feat(api) HEAD response, fixes #3854

This commit is contained in:
chrismartin0077 2016-08-29 05:45:28 -07:00
parent 9c08d7aef5
commit 0050707134

View File

@ -19,6 +19,9 @@ func Register(r *macaron.Macaron) {
quota := middleware.Quota quota := middleware.Quota
bind := binding.Bind bind := binding.Bind
// automatically set HEAD for every GET
r.SetAutoHead(true)
// not logged in views // not logged in views
r.Get("/", reqSignedIn, Index) r.Get("/", reqSignedIn, Index)
r.Get("/logout", Logout) r.Get("/logout", Logout)