Skip to content

Commit

Permalink
Harding-coding layout to false.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Lokahi Podwys committed Aug 5, 2015
1 parent e738a61 commit 446ef57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions expressStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ exports.stream = function(middlewareViews){
res._render = res.render;
res.render = function (view, options, callback) {
this.isFinalChunk = true;
options.layout = false;
this._render(view, options, callback);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "express-stream",
"version": "0.3.0",
"version": "0.3.1",
"description": "Response streaming middleware for Express 4.",
"main": "./expressStream.js",
"scripts": {
Expand Down

0 comments on commit 446ef57

Please sign in to comment.