Skip to content

Commit c3ebd73

Browse files
committed
HTTP/2 first
1 parent bdd5a7c commit c3ebd73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ var httpServer = httpolyglot.createServer({
236236
let tlsOpts = {
237237
key: require('fs').readFileSync(process.env.HTTPS_KEY_FILE || 'testpk.pem'),
238238
cert: require('fs').readFileSync(process.env.HTTPS_CERT_FILE || 'fullchain.pem'),
239-
ALPNProtocols: [ 'http/1.1', 'h2'],
239+
ALPNProtocols: [ 'h2', 'http/1.1'],
240240
};
241241

242242
//Whether to enable the client certificate feature

0 commit comments

Comments
 (0)