diff options
author | isaacs <i@izs.me> | 2011-04-14 00:36:02 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-04-14 00:36:02 +0400 |
commit | 7a1753573669904b5b20b87c9442d0045e265f09 (patch) | |
tree | 0b970ffd88630d8e7756485869741e737631a965 | |
parent | d45ab84c66436b12a989fe0c82f091387ee4fb98 (diff) |
typo. s/authentication/authorization/
-rw-r--r-- | lib/utils/fetch.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/fetch.js b/lib/utils/fetch.js index 5d5f67fef..ed871ed3e 100644 --- a/lib/utils/fetch.js +++ b/lib/utils/fetch.js @@ -56,7 +56,7 @@ function fetchAndWrite (remote, fstr, headers, maxRedirects, redirects) { var auth = npm.config.get("_auth") if (!auth) return fstr.emit("error", new Error( "Auth required and none provided. Please run 'npm adduser'")) - headers.authentication = "Basic "+auth + headers.authorization = "Basic "+auth } else if (remote.auth) { headers.authentication = "Basic " + (new Buffer(remote.auth).toString("base64")) |