Skip to content

fix: add error boundary to node:http server#54

Merged
masonlet merged 1 commit into
mainfrom
fix/http-error-boundary
Jul 13, 2026
Merged

fix: add error boundary to node:http server#54
masonlet merged 1 commit into
mainfrom
fix/http-error-boundary

Conversation

@masonlet

Copy link
Copy Markdown
Member

Summary

Wraps the node:http server's request callback in a try/catch so a thrown
error returns 400 Bad Request instead of becoming an unhandled rejection. handleLanguages itself never rejects, so the new URL parse is the only exposed throw site.

@masonlet
masonlet merged commit c577787 into main Jul 13, 2026
5 checks passed
@masonlet
masonlet deleted the fix/http-error-boundary branch July 13, 2026 18:42
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