We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 835fd90 commit 15566b5Copy full SHA for 15566b5
lib/node_modules/@stdlib/plot/base/server/lib/main.js
@@ -77,11 +77,9 @@ function createServer( router, clbk ) {
77
// Extract server options:
78
sopts = serverOpts( {} );
79
80
- // Set require server options for SSL:
81
- sopts = {
82
- 'cert': readFileSync( resolve( KEYS_DIR, 'localhost_cert.pem' ) ),
83
- 'key': readFileSync( resolve( KEYS_DIR, 'localhost_privkey.pem' ) )
84
- };
+ // Set required server options for SSL:
+ sopts.cert = readFileSync( resolve( KEYS_DIR, 'localhost_cert.pem' ) );
+ sopts.key = readFileSync( resolve( KEYS_DIR, 'localhost_privkey.pem' ) );
85
86
// Create a function to boot a server...
87
boot = serverFactory( sopts, requestListener );
0 commit comments