Skip to content
Browse files

Removed unnecessary callback while rendering a closure. The applicati…

…on is responsible for ending the response.
  • Loading branch information...
1 parent d40cd50 commit cdd6736bafe85f3ddecf8636c665b2a577b72326 @tuxychandru committed
Showing with 1 addition and 3 deletions.
  1. +1 −3 grasshopper/lib/renderer.js
View
4 grasshopper/lib/renderer.js
@@ -183,9 +183,7 @@ RequestContext.prototype.render = function(view, useLayout) {
this.response.writeHead(this.status, this.headers);
if(this.request.method != 'HEAD') {
var self = this;
- view(function() {
- self.response.end();
- });
+ view();
}
} else {
this.model['flash'] = this.flash;

0 comments on commit cdd6736

Please sign in to comment.
Something went wrong with that request. Please try again.