From d98be539ad87aaca710aea3dd34be337d4fa0e87 Mon Sep 17 00:00:00 2001 From: Mikko Tikkanen Date: Thu, 16 Jan 2014 23:31:38 +0200 Subject: [PATCH] Fix url path on Windows On windows the provided slashes are "\" instead of "/" --- lib/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helpers.js b/lib/helpers.js index e532ffd..c904df1 100644 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -128,7 +128,7 @@ module.exports = function(config){ fullpath = path.join(fullpath, filepath) // add protocol - var fullurl = "https://" + fullpath + var fullurl = "https://" + fullpath.replace(/\\/gm, '/') // add querystring if we have one if(obj.hasOwnProperty("query")) fullurl += ("?" + qs.stringify(obj.query))