Skip to content

Commit

Permalink
chore: Update example to allow downgrading to http1
Browse files Browse the repository at this point in the history
  • Loading branch information
avimar authored and mmarchini committed Nov 29, 2022
1 parent fa52f60 commit f384900
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/http2/http2.js
Expand Up @@ -7,7 +7,8 @@ var srv = restify.createServer({
http2: {
cert: fs.readFileSync(path.join(__dirname, './keys/http2-cert.pem')),
key: fs.readFileSync(path.join(__dirname, './keys/http2-key.pem')),
ca: fs.readFileSync(path.join(__dirname, 'keys/http2-csr.pem'))
ca: fs.readFileSync(path.join(__dirname, 'keys/http2-csr.pem')),
allowHTTP1: true //allow incoming connections that do not support HTTP/2 to be downgraded to HTTP/1.x
}
});

Expand Down

0 comments on commit f384900

Please sign in to comment.