diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2014-10-24 10:08:58 +0400 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2014-10-31 11:14:56 +0300 |
commit | 20a331ced6a52faac6ec242e3ffdf28bcd447c40 (patch) | |
tree | 1ddf0d5ea9f8e984bf4cc05c39e9d021cc0786ae /lib/config | |
parent | 6750b05dcba20d8990a672957ec56c48f97e241a (diff) |
nerf better
Fixes npm/npm-registry-client#77, partially addresses
npm/npm-registry-client#70.
Diffstat (limited to 'lib/config')
-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), ".") } |