ocd
This commit is contained in:
parent
8a50594858
commit
bb0a0b3659
1 changed files with 3 additions and 0 deletions
|
@ -210,8 +210,11 @@ module.exports = {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
redirect: function(url, alt){
|
redirect: function(url, alt){
|
||||||
|
// location
|
||||||
if ('back' == url) url = this.ctx.get('Referrer') || alt || '/';
|
if ('back' == url) url = this.ctx.get('Referrer') || alt || '/';
|
||||||
this.set('Location', url);
|
this.set('Location', url);
|
||||||
|
|
||||||
|
// status
|
||||||
if (!status.redirect[this.status]) this.status = 302;
|
if (!status.redirect[this.status]) this.status = 302;
|
||||||
|
|
||||||
// html
|
// html
|
||||||
|
|
Loading…
Reference in a new issue