Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

Commit

Permalink
add return on line 97
Browse files Browse the repository at this point in the history
  • Loading branch information
herber committed Feb 16, 2018
1 parent a3d942d commit c33aaae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions bin/hekto.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ if (args.serve) {
if (!isPathInside(file, path.join(process.cwd(), argDir))) {
this.body = 'Bad Request';
this.status = 400;

return;
}

// if requested file / directory exists
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"url": "https://github.com/tobihrbr/hekto.git",
"type": "git"
},
"version": "0.2.2",
"version": "0.2.3",
"description": "Serve static files",
"keywords": [
"serve",
Expand Down

0 comments on commit c33aaae

Please sign in to comment.