Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

[patch] Note that status not respected by res.redirect() #1296

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions reference/res/res.status.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ res.send('I am a teapot');
### Notes
>+ The status code may be set up until the response is sent.
>+ `res.status()` is effectively just a chainable alias of Node's `res.statusCode = …;`.
>+ As of Sails v1.x, for HTTP requests, `res.redirect()` [does not respect the status code established by `res.status()`](https://github.com/balderdashy/sails-docs/pull/796#issuecomment-284224746).



Expand Down