Skip to content

Commit

Permalink
[tls] fix '[object] has no end method'
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Apr 14, 2011
1 parent e2d9018 commit a8d40ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/tls.js
Expand Up @@ -396,6 +396,8 @@ CleartextStream.prototype._pusher = function(pool, offset, length) {
return this.pair._ssl.clearOut(pool, offset, length);
};

CleartextStream.prototype.end = function() {};


function EncryptedStream(pair) {
CryptoStream.call(this, pair);
Expand Down Expand Up @@ -424,6 +426,8 @@ EncryptedStream.prototype._pusher = function(pool, offset, length) {
return this.pair._ssl.encOut(pool, offset, length);
};

EncryptedStream.prototype.end = function() {};


/**
* Provides a pair of streams to do encrypted communication.
Expand Down

0 comments on commit a8d40ff

Please sign in to comment.