Permalink
Browse files

[fix] Actually follow my own advice in edc77cd

  • Loading branch information...
1 parent fdaf986 commit 78a2ecd3facaa3f7c6e23129c1c5f8fe9e4a3396 @indexzero indexzero committed Nov 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/response-stream.js
View
@@ -171,6 +171,6 @@ ResponseStream.prototype.redirect = function(path, status) {
url += (path[0] === '/') ? path : '/' + path;
}
- this.response.writeHead(status || 302, { 'Location': url });
- this.response.end();
+ this.res.writeHead(status || 302, { 'Location': url });
+ this.end();
};

0 comments on commit 78a2ecd

Please sign in to comment.