Skip to content
Browse files

[tls] fix '[object] has no end method'

  • Loading branch information...
1 parent e2d9018 commit a8d40ffd1e81a31707a26e47b1bb4eb3dbc975f4 @indutny committed Apr 14, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/tls.js
View
4 lib/tls.js
@@ -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);
@@ -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.

0 comments on commit a8d40ff

Please sign in to comment.
Something went wrong with that request. Please try again.