From 1e5b4f3ad490ccd00379846db96924d49955594a Mon Sep 17 00:00:00 2001 From: Zach Ahn Date: Mon, 8 Apr 2013 13:59:44 -0400 Subject: [PATCH] fix issue #64 (all tests pass) --- lib/helpers.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/helpers.js b/lib/helpers.js index dbb84ec..e532ffd 100644 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -111,13 +111,13 @@ module.exports = function(config){ var fileop = obj.action.split("/")[0] == "fileops" // fileops calls desn't want root in path - var rootpath = fileop ? null : root + var rootpath = fileop ? "" : root // fileops calls desn't want scope in path - var scopepath = fileop ? null : scope + var scopepath = fileop ? "" : scope // we wont always have this - var filepath = obj.path ? qs.escape(obj.path) : null + var filepath = obj.path ? qs.escape(obj.path) : "" // build full path var fullpath = path.join(obj.hostname)