Permalink
Browse files

404 Only on non root

  • Loading branch information...
1 parent aa5238e commit 02af15037af74a570f5df2113d713f37b7177675 @bencevans committed Oct 7, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 app.js
View
6 app.js
@@ -39,8 +39,10 @@ var server = http.createServer(function (req, res) {
if(req.headers['user-agent'].match(/git/))
return repos.handle(req, res);
else {
- res.statusCode = 404;
- return res.end('404');
+ if(req.url !== '/') {
+ res.statusCode = 404;
+ res.end('404');
+ }
}
var locals = {}

0 comments on commit 02af150

Please sign in to comment.