You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ra...@apache.org on 2015/02/02 14:20:31 UTC

thrift git commit: THRIFT-2934: make node server options optional Client: Nodejs Patch: Randy Abernethy

Repository: thrift
Updated Branches:
  refs/heads/master 4e1e13214 -> 1097c40ed


THRIFT-2934: make node server options optional
Client: Nodejs
Patch: Randy Abernethy


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/1097c40e
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/1097c40e
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/1097c40e

Branch: refs/heads/master
Commit: 1097c40ed0f36f44081d454dab7914673fb6ea07
Parents: 4e1e132
Author: Randy Abernethy <ra...@apache.org>
Authored: Mon Feb 2 05:18:59 2015 -0800
Committer: Randy Abernethy <ra...@apache.org>
Committed: Mon Feb 2 05:18:59 2015 -0800

----------------------------------------------------------------------
 lib/nodejs/lib/thrift/server.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/1097c40e/lib/nodejs/lib/thrift/server.js
----------------------------------------------------------------------
diff --git a/lib/nodejs/lib/thrift/server.js b/lib/nodejs/lib/thrift/server.js
index 5453bc8..8715f2c 100644
--- a/lib/nodejs/lib/thrift/server.js
+++ b/lib/nodejs/lib/thrift/server.js
@@ -86,7 +86,7 @@ exports.createMultiplexServer = function(processor, options) {
     });
   }
 
-  if (options.tls) {
+  if (options && options.tls) {
     return tls.createServer(options.tls, serverImpl);
   } else {
     return net.createServer(serverImpl);