Call ActionDispatch::Journey::Router.get_routes_as_head only on HEAD requests.