|
@@ -1,5 +1,5 @@
|
|
|
/**
|
|
|
- * @Author HonorLee (deve@honorlee.me)
|
|
|
+ * @Author HonorLee (dev@honorlee.me)
|
|
|
* @Version 1.0 (2018-05-04)
|
|
|
* @License MIT
|
|
|
*/
|
|
@@ -38,6 +38,10 @@ module.exports = function(req,res){
|
|
|
this.Response.write(endContent);
|
|
|
this.Response.end();
|
|
|
}
|
|
|
+ this.endRedirect = this.responseRedirect = function(status,location){
|
|
|
+ this.Response.writeHead(status,{'Location':location});
|
|
|
+ this.Response.end();
|
|
|
+ }
|
|
|
/**
|
|
|
* [responseInJSON description]
|
|
|
* @param {[type]} somthing [String,Number,Object]
|