Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mikeal/request
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeal committed Sep 4, 2012
2 parents d98ef41 + bc0d07e commit 0c470bc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions node_modules/form-data/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
{ "url" : "http://github.com/mikeal/request/issues" }
, "engines" : ["node >= 0.3.6"]
, "main" : "./main"
, "dependencies": { "form-data":"~0.0.3", "mime":"~1.2.7" }
, "bundleDependencies": ["form-data", "mime"]
, "scripts": { "test": "node tests/run.js" }
}
3 changes: 2 additions & 1 deletion tests/test-tunnel.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ squid.on('exit', function (c) {

setTimeout(function F () {
if (!ready) return setTimeout(F, 100)
request({ uri: 'https://registry.npmjs.org/request/'
request({ uri: 'https://registry.npmjs.org/'
, proxy: 'http://localhost:3128'
, strictSSL: true
, ca: ca
, json: true }, function (er, body) {
hadError = er
Expand Down
1 change: 1 addition & 0 deletions tunnel.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ function createSecureSocket(options, cb) {
TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {
// 0 is dummy port for v0.6
var secureSocket = tls.connect(0, mergeOptions({}, self.options, {
servername: options.host,
socket: socket
}));
cb(secureSocket);
Expand Down

0 comments on commit 0c470bc

Please sign in to comment.