You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Passing a next function like (v) => v and returning the return value of res.redirect should effectively accomplish the same thing as passing next in a non-async handler if I'm reading the code right.
Restify Version: 9.0.0-rc.3
Node.js Version: v16.13.0
Expected behaviour
Redirect shouldn't need the next callback parameter anymore.
Actual behaviour
Impossible to use res.redirect from an async route handler
Repro case
Call res.redirect from an async route handler
Cause
The direct function requires the next callback function to be passed.
Are you willing and able to fix this?
Yes, but I'm not sure how it should be fixed, or if this is even intentional.
The text was updated successfully, but these errors were encountered: