Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
robogeek committed Jan 4, 2015
1 parent 31aed51 commit d6baf1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@ module.exports.runPreviewServer = function(config) {
res.end();
} else {
if (stats.isDirectory()) {
if (requrl.pathname.match(/[^\/]$/)) requrl.pathname += '/';
requrl.pathname += 'index.html';
res.setHeader('Location', url.format(requrl));
res.statusCode = 302;
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"bin": {
"akashacms": "cli.js"
},
"version": "0.3.35",
"version": "0.3.36",
"engines": {
"node": ">=0.8.1"
},
Expand Down Expand Up @@ -45,7 +45,8 @@
"sightmap": ">=0.0.0",
"ssh2sync": "*",
"yamljs": "*",
"rss": "*"
"rss": "*",
"sseasy": "*"
},
"devDependencies": {
"vows": "*"
Expand Down

0 comments on commit d6baf1a

Please sign in to comment.