Skip to content

Commit

Permalink
Update router_server.js
Browse files Browse the repository at this point in the history
Optionally just return for a route method which handles the response definitively (i. e. by calling this.response.end() or piping to the response). See http://stackoverflow.com/q/17073431/220060 for a use case.
  • Loading branch information
nalply committed Jul 21, 2013
1 parent e5beb61 commit 8d8fc23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/router_server.js
Expand Up @@ -84,7 +84,8 @@

if (output === false) {
return next();
} else {
}
else if (typeof(output)!="undefined") {
// parse out the various type of response we can have

// array can be
Expand Down

0 comments on commit 8d8fc23

Please sign in to comment.