Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-04-14 00:36:02 +0400
committerisaacs <i@izs.me>2011-04-14 00:36:02 +0400
commit7a1753573669904b5b20b87c9442d0045e265f09 (patch)
tree0b970ffd88630d8e7756485869741e737631a965
parentd45ab84c66436b12a989fe0c82f091387ee4fb98 (diff)
typo. s/authentication/authorization/
-rw-r--r--lib/utils/fetch.js2
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"))