diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/config/nerf-dart.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/config/nerf-dart.js b/lib/config/nerf-dart.js index 3b26a56c6..07c817500 100644 --- a/lib/config/nerf-dart.js +++ b/lib/config/nerf-dart.js @@ -13,9 +13,11 @@ module.exports = toNerfDart */ function toNerfDart(uri) { var parsed = url.parse(uri) - parsed.pathname = "/" delete parsed.protocol delete parsed.auth + delete parsed.query + delete parsed.search + delete parsed.hash - return url.format(parsed) + return url.resolve(url.format(parsed), ".") } |