Skip to content

Conversation

@oliver-moran
Copy link

If the headers are malformed in the current release then an uncaught exception is thrown causing everything to crash. This adds an error handler that catches errors from the headers parser. The error is sent to stderr if it stderr is set. Nothing is sent to the client from cgi-node. The Stream.write method of stderr can decide what will be sent to the client.

If stderr is not set then the error is thrown and behavior is similar to the current release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant