Please sign in to comment.
Ensure status code is set.
Set the status code into the response before firing the beforeRedirect event. This allows for fewer arguments in each event listener but still allows listeners to read and modify the status code. Remove redirect with string status codes. The documentation and simplest use is with integers. String names for status code are more verbose and require additional logic to handle. If necessary constants can be added for the most common status codes.
- Loading branch information...
Showing with 6 additions and 62 deletions.