Skip to content

Missing Auth Header Crashes Server #28

@hsperker

Description

@hsperker

When a request comes in without a valid Authorization header, the
innerRunStream generator sends a 401 response directly and returns.
However, the outer runCreateResponseStream continues and yields
response.completed, causing postCreateResponse to call res.json()
a second time - crashing the server with ERR_HTTP_HEADERS_SENT.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions