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

fix(h3): always return a response to support non-preemptive routers #573

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

pi0
Copy link
Contributor

@pi0 pi0 commented Jan 25, 2024

See unjs/h3#628 (comment) for more context.

Copy link

changeset-bot bot commented Jan 25, 2024

🦋 Changeset detected

Latest commit: edfea66

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
uploadthing Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Jan 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-uploadthing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 25, 2024 0:31am

@@ -71,7 +71,7 @@ export const createRouteHandler = <TRouter extends FileRouter>(
return "An unknown error occurred";
}

return response.body;
return response.body ?? "OK";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be also an empty string btw or whatever. only not nullish

@juliusmarminge
Copy link
Collaborator

Thank you 🙏

@juliusmarminge juliusmarminge merged commit adf7994 into pingdotgg:main Jan 25, 2024
10 checks passed
@pi0 pi0 deleted the fix/h3-preemptive branch January 25, 2024 12:38
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.

2 participants