mirror of
https://relay.ngit.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-grasp.git
synced 2026-10-30 19:17:38 +00:00
RFC 9110 §9.3.2 requires HEAD to return the same headers as GET with no body. The info/refs routes in both the standard git path and the /prs/ path only matched Method::GET, so HEAD requests fell through to the wildcard and returned 404. Extend both match guards to also accept Method::HEAD, then strip the body from the response before returning it.