Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make response empty for not found errors with non html extension #67

Merged
merged 1 commit into from
Jun 26, 2023

Conversation

KyleJune
Copy link
Member

By default, the error boundary for non API routes would always render html for all errors. This updates the handling for 404 errors to not render HTML unless there is no extension or a .html extension. This makes it so that for requests like /invalid.png, we would respond with an empty response instead of html.

@KyleJune KyleJune merged commit 00a7171 into main Jun 26, 2023
7 checks passed
@KyleJune KyleJune deleted the dev branch June 26, 2023 05:03
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.

None yet

1 participant