Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove unrelated change
  • Loading branch information
murgatroid99 committed Mar 13, 2020
commit a433d8661d32925af4d097d10901e2f453967cab
6 changes: 1 addition & 5 deletions lib/internal/http2/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -2877,11 +2877,7 @@ function initializeOptions(options) {

function initializeTLSOptions(options, servername) {
options = initializeOptions(options);
if (options.ALPNProtocols) {
options.ALPNProtocols.push('h2');
} else {
options.ALPNProtocols = ['h2'];
}
options.ALPNProtocols = ['h2'];
if (options.allowHTTP1 === true)
options.ALPNProtocols.push('http/1.1');
if (servername !== undefined && options.servername === undefined)
Expand Down