diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-06-29 14:50:03 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-06-29 14:50:03 +0200 |
commit | 23b8931b62b0e19e518501bdd00801a61f47eba3 (patch) | |
tree | beaccf45d1fe654c669ba7cb2bef3288ac2d9cde /lib | |
parent | 09b8a5e2cfbeb06274b4e6895d2bc22a2faec8b5 (diff) | |
parent | e286480e3495040bfe2d87f6fdf3c56c5f695bb3 (diff) | |
download | android-node-v8-23b8931b62b0e19e518501bdd00801a61f47eba3.tar.gz android-node-v8-23b8931b62b0e19e518501bdd00801a61f47eba3.tar.bz2 android-node-v8-23b8931b62b0e19e518501bdd00801a61f47eba3.zip |
Merge branch 'v0.4'
Conflicts:
src/node.js
src/node_version.h
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http.js | 1 | ||||
-rw-r--r-- | lib/module.js | 7 |
2 files changed, 2 insertions, 6 deletions
diff --git a/lib/http.js b/lib/http.js index 7a74fdb926..0927a862d6 100644 --- a/lib/http.js +++ b/lib/http.js @@ -284,6 +284,7 @@ IncomingMessage.prototype._addHeaderLine = function(field, value) { case 'connection': case 'cookie': case 'pragma': + case 'link': if (field in dest) { dest[field] += ', ' + value; } else { diff --git a/lib/module.js b/lib/module.js index be5475f9cf..daf73d96f5 100644 --- a/lib/module.js +++ b/lib/module.js @@ -199,12 +199,7 @@ Module._nodeModulePaths = function(from) { var paths = []; var parts = from.split(splitRe); - var root = parts.indexOf('node_modules') - 1; - if (root < 0) root = 0; - - var tip = parts.length - 1; - - for (var tip = parts.length - 1; tip >= root; tip --) { + for (var tip = parts.length - 1; tip >= 0; tip --) { // don't search in .../node_modules/node_modules if (parts[tip] === 'node_modules') continue; var dir = parts.slice(0, tip + 1).concat('node_modules').join(joiner); |