diff options
author | isaacs <i@izs.me> | 2011-03-20 21:31:35 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-03-20 21:31:35 +0300 |
commit | dc6897a3e6e978be28fd4f0a0edd9c2ab6da7770 (patch) | |
tree | a7d1f72885398a5ef9d5bd16b837515b78d2a024 | |
parent | b02eb3f9433b8176a591518be336b1f90838942f (diff) |
Closes GH-727 A bit of debugging and workaround.
-rw-r--r-- | lib/utils/registry/request.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/utils/registry/request.js b/lib/utils/registry/request.js index 9a9b2ed89..52942a261 100644 --- a/lib/utils/registry/request.js +++ b/lib/utils/registry/request.js @@ -87,7 +87,11 @@ function request (method, where, what, etag, nofollow, cb_) { log.verbose(etag, "etag") headers[method === "GET" ? "if-none-match" : "if-match"] = etag } + log.silly(headers, "headers") + log.silly(remote, "remote") + + if (!remote.protocol) log.warn(remote, "No protocol?") var opts = { method: method , headers: headers @@ -95,7 +99,8 @@ function request (method, where, what, etag, nofollow, cb_) { + (remote.search||"") + (remote.hash||"") , host: remote.hostname - , secure: remote.protocol.toLowerCase() === "https:" + , secure: remote.protocol + && remote.protocol.toLowerCase() === "https:" , port: remote.port } if (!opts.port) opts.port = opts.secure ? 443 : 80 |