Skip to content

Test 406 storage in @fedify/h3 #861

Description

@dahlia

@fedify/h3 stores Fedify 406 responses so the H3 error handler can return them only when the app has no HTML route. A regression here would break content negotiation for shared routes.

Add a test in packages/h3/src/index.test.ts that verifies integrateFederation() stores a 406 response in event.context.__fedify_response__.

Suggested check: mise run check-each h3.

Metadata

Metadata

Assignees

No one assigned

    Type

    Fields

    Priority

    Low

    Effort

    Low

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions