Permalink
Browse files

Make sure the 404 falls through properly on first boot.

  • Loading branch information...
1 parent 2f78ded commit cf26bf7afed8799cb6f50e42dd3443f65d787875 Sean Grove committed with Oct 23, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 server.js
View
@@ -11,8 +11,8 @@ var server = express.createServer();
server.configure(function(){
server.set('views', __dirname + '/views');
server.use(connect.bodyDecoder());
- server.use(connect.staticProvider(__dirname + '/static'));
server.use(server.router);
+ server.use(connect.staticProvider(__dirname + '/static'));
});
//setup the errors

1 comment on commit cf26bf7

Oops. That seems to grab all of the static files and serve them up as a 404!

Please sign in to comment.