-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
adding support for specifying headers in ctx.onerror #429
Comments
what can't be done with middleware? streaming errors? if anything, i'd prefer the |
+1 to having |
another +1 for making |
@jonathanong what would this look like? would we just extend the onErrors API to allow passing in |
i'm not sure. i'm not sure what the problem reported is |
At the bare minimum I think the user should be allowed to keep the headers that have been set up to when the error has been thrown if it's a user-level error, as I mentioned here: #537 (comment). Then, whether this should be a default behavior, or set as an option it's debatable. Imho should be default but other people might think differently. |
Related #571 |
i think i like #571 solution better. if you agree @dead-horse , wanna close this? otherwise, |
SGTM |
koajs/ratelimit#13
The text was updated successfully, but these errors were encountered: