mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-11 09:13:02 +03:00
[PR #3307] Add HEAD routes to avoid spurious error messages #3039
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/dani-garcia/vaultwarden/pull/3307
State: closed
Merged: Yes
Rocket automatically implements a HEAD route when there's a matching GET route, but relying on this behavior also means a spurious error gets logged due to https://github.com/SergioBenitez/Rocket/issues/1098.
Add explicit HEAD routes for
/and/aliveto prevent uptime monitoring services from generating error messages likeNo matching routes for HEAD /. With these new routes,HEAD /only checks that the server can respond over the network, whileHEAD /alivealso checks that the database connection is alive, similar toGET /alive.