Skip to content

Commit 15566b5

Browse files
committed
fix: update option handling
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 835fd90 commit 15566b5

File tree

1 file changed

+3
-5
lines changed
  • lib/node_modules/@stdlib/plot/base/server/lib

1 file changed

+3
-5
lines changed

lib/node_modules/@stdlib/plot/base/server/lib/main.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,9 @@ function createServer( router, clbk ) {
7777
// Extract server options:
7878
sopts = serverOpts( {} );
7979

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-
};
80+
// Set required server options for SSL:
81+
sopts.cert = readFileSync( resolve( KEYS_DIR, 'localhost_cert.pem' ) );
82+
sopts.key = readFileSync( resolve( KEYS_DIR, 'localhost_privkey.pem' ) );
8583

8684
// Create a function to boot a server...
8785
boot = serverFactory( sopts, requestListener );

0 commit comments

Comments
 (0)