Skip to content

Commit ec8ea6a

Browse files
committed
refactor: disallow HTTP/1 requests
--- 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 cb5a4b3 commit ec8ea6a

File tree

1 file changed

+1
-2
lines changed
  • lib/node_modules/@stdlib/plot/base/server/lib

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ function createServer( router, clbk ) {
8080
// Set require server options for SSL:
8181
sopts = {
8282
'cert': readFileSync( resolve( KEYS_DIR, 'localhost_cert.pem' ) ),
83-
'key': readFileSync( resolve( KEYS_DIR, 'localhost_privkey.pem' ) ),
84-
'allowHTTP1': true
83+
'key': readFileSync( resolve( KEYS_DIR, 'localhost_privkey.pem' ) )
8584
};
8685

8786
// Create a function to boot a server...

0 commit comments

Comments
 (0)