Skip to content

Commit

Permalink
fix: fixes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
prahladyeri committed Sep 6, 2019
1 parent 3546445 commit f9f13b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/http-live
Expand Up @@ -76,6 +76,9 @@ http.createServer(function (req, res) {
var delay = config.minDelay + Math.floor(Math.random() * (config.maxDelay-config.minDelay));
sleep(delay)
.then(function(e){
if (pathname == "") {
pathname = '/';
}
if (pathname == "/") {
for(var i=0;i<defaults.length;i++) {
if (fs.existsSync(process.cwd() + '/' + defaults[i])) {
Expand Down

0 comments on commit f9f13b5

Please sign in to comment.