Browse files

Fix crash when serving static file on Node 0.10.x

  • Loading branch information...
1 parent b235ab3 commit 0365b8d668d72761695ba4e86f479069bc796650 @jcheng5 jcheng5 committed Mar 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/router/router.js
View
2 lib/router/router.js
@@ -89,7 +89,7 @@ function RestartRouter(router) {
this.getAppSpec_p = function(req, res) {
return this.$router.getAppSpec_p.apply(this.$router, arguments)
.then(function(appSpec) {
- if (appSpec) {
+ if (appSpec && typeof(appSpec) === 'object') {
return Q.nfcall(fs.stat, path.join(appSpec.appDir, 'restart.txt'))
.then(
function(stat) {

0 comments on commit 0365b8d

Please sign in to comment.