Skip to content

Custom 404 code in handler causes failure at handler.lua:146 #132

@midn1

Description

@midn1

As in title, doing response:statusCode(404) within a handler for a custom 404 response causes the response:writeDefaultErrorMessage call at handler.lua:146 to crash the program.

Specifically, it tries to do a write when the response was already written.

This doesn't seem like a very niche requirement to me

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions