Skip to content

Commit

Permalink
Merge pull request #59 from simon-p-r/absolutePath
Browse files Browse the repository at this point in the history
Remove hoek.isAbsolutePath for path.isAbsolute
  • Loading branch information
kanongil committed May 9, 2016
2 parents 4e3ec4d + 3c4cd57 commit 9607ea4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/directory.js
Expand Up @@ -39,7 +39,7 @@ exports.handler = function (route, options) {
for (let i = 0; i < paths.length; ++i) {
let path = paths[i];

if (!Hoek.isAbsolutePath(path)) {
if (!Path.isAbsolute(path)) {
path = Path.join(route.settings.files.relativeTo, path);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/file.js
Expand Up @@ -59,7 +59,7 @@ exports.response = function (path, options, request, _preloaded) {
Hoek.assert(!options.mode || ['attachment', 'inline'].indexOf(options.mode) !== -1, 'options.mode must be either false, attachment, or inline');

const source = {
path: Path.normalize(Hoek.isAbsolutePath(path) ? path : Path.join(request.route.settings.files.relativeTo, path)),
path: Path.normalize(Path.isAbsolute(path) ? path : Path.join(request.route.settings.files.relativeTo, path)),
settings: options,
stat: null,
fd: null
Expand Down

0 comments on commit 9607ea4

Please sign in to comment.