THRIFT-2398:Improve Node Server Library\nClient: Node\nPatch: Randy Abernethy\n\nGeneral server parameter harmonization and comments
diff --git a/lib/js/test/server_https.js b/lib/js/test/server_https.js
index 28f0585..69d7e89 100644
--- a/lib/js/test/server_https.js
+++ b/lib/js/test/server_https.js
@@ -35,21 +35,21 @@
//Setup the I/O stack options for the ThriftTest service
var ThriftTestSvcOpt = {
- transport: TBufferedTransport,
- protocol: TJSONProtocol,
- cls: ThriftTestSvc,
- handler: ThriftTestHandler
+ transport: TBufferedTransport,
+ protocol: TJSONProtocol,
+ processor: ThriftTestSvc,
+ handler: ThriftTestHandler
};
var ThriftWebServerOptions = {
- staticFilePath: ".",
- tlsOptions: {
- key: fs.readFileSync("../../../test/keys/server.key"),
- cert: fs.readFileSync("../../../test/keys/server.crt")
- },
- services: {
- "/service": ThriftTestSvcOpt
- }
+ files: ".",
+ tls: {
+ key: fs.readFileSync("../../../test/keys/server.key"),
+ cert: fs.readFileSync("../../../test/keys/server.crt")
+ },
+ services: {
+ "/service": ThriftTestSvcOpt
+ }
};
var server = thrift.createWebServer(ThriftWebServerOptions);
@@ -57,6 +57,3 @@
server.listen(port);
console.log("Serving files from: " + __dirname);
console.log("Http/Thrift Server running on port: " + port);
-
-
-