Browse Source

tls: Provide buffer to Connection.setSession

v0.9.3-release
isaacs 12 years ago
parent
commit
4266f5cf2e
  1. 5
      lib/tls.js

5
lib/tls.js

@ -1296,7 +1296,10 @@ exports.connect = function(/* [port, host], options, cb */) {
});
if (options.session) {
pair.ssl.setSession(options.session);
var session = options.session;
if (typeof session === 'string')
session = new Buffer(session, 'binary');
pair.ssl.setSession(session);
}
var cleartext = pipe(pair, socket);

Loading…
Cancel
Save