diff options
author | isaacs <i@izs.me> | 2011-10-20 07:10:34 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-10-20 07:10:34 +0400 |
commit | de82217961f942cdfed7e02915355b49e3c8ee56 (patch) | |
tree | 56c0177c7a94a72b452a70da119ea021251dd644 | |
parent | 11b848def1e37f1e11d20986cba577ffc3178513 (diff) |
Don't treat /-/xyz registry urls as packages for 404 errors
-rw-r--r-- | lib/utils/npm-registry-client/request.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/npm-registry-client/request.js b/lib/utils/npm-registry-client/request.js index 1f021897b..de9138075 100644 --- a/lib/utils/npm-registry-client/request.js +++ b/lib/utils/npm-registry-client/request.js @@ -171,7 +171,7 @@ function requestDone (method, where, cb) { return function (er, response, data) if (parsed && parsed.error && response.statusCode >= 400) { var w = url.parse(where).pathname.substr(1) - if (parsed.error === "not_found") { + if (!w.match(/^-/) && parsed.error === "not_found") { w = w.split("/") name = w[w.indexOf("_rewrite") + 1] er = new Error("404 Not Found: "+name) |