Skip to content

Commit

Permalink
Fixed issues with internal client in modules
Browse files Browse the repository at this point in the history
  • Loading branch information
dallonf committed Nov 15, 2012
1 parent 4e681a2 commit 82a8be9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ exports.build = function(server, session, stack) {
, query: options.query
, body: options.body
, session: session
, isRoot: session.isRoot
, isRoot: session && session.isRoot
, internal: true
, headers: {}
, on: function() {}
Expand Down
2 changes: 2 additions & 0 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ Server.prototype.listen = function(port, host) {
process.exit(1);
} else {
server.resources = resourcesInstances;
var router = new Router(resourcesInstances, server);
server.router = router;
http.Server.prototype.listen.call(server, port || server.options.port, host || server.options.host);
}
});
Expand Down

0 comments on commit 82a8be9

Please sign in to comment.