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
path: root/lib
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-04-25 02:13:33 +0400
committerisaacs <i@izs.me>2010-04-25 02:13:33 +0400
commit3695c971daf2663d179a0197476adc94a871c702 (patch)
tree5b0e98ef0d700528bf9a032151ed6a11907b8499 /lib
parent7189d3ad45b23aa8076724e12dcdf0d1590addc4 (diff)
s/close/end/g
Diffstat (limited to 'lib')
-rw-r--r--lib/utils/fetch.js2
-rw-r--r--lib/utils/registry.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/utils/fetch.js b/lib/utils/fetch.js
index fae54e702..95b7efec3 100644
--- a/lib/utils/fetch.js
+++ b/lib/utils/fetch.js
@@ -78,5 +78,5 @@ function fetchAndWrite (remote, fd, headers, maxRedirects, redirects, cb) {
fs.close(fd, cb);
});
})
- .close();
+ .end();
}
diff --git a/lib/utils/registry.js b/lib/utils/registry.js
index ad1ca05ec..ce5d6f857 100644
--- a/lib/utils/registry.js
+++ b/lib/utils/registry.js
@@ -101,7 +101,7 @@ function PUT (where, what, cb) {
});
});
request.write(what, "utf8");
- request.close();
+ request.end();
}
function reg () {