node-restify icon indicating copy to clipboard operation
node-restify copied to clipboard

Update example to allow downgrading to http1

Open avimar opened this issue 7 years ago • 1 comments

Issues

When following the example, many connections don't work. e.g. curl returned:

Unknown ALPN Protocol, expected h2 to be available. If this is a HTTP request: The server was not configured with the allowHTTP1 option or a listener for the unknownProtocol event.

What does this PR do?

Allows automatic downgrade to http1. Node's http2 module allows https or http2 with the same code.

avimar avatar Nov 16 '18 11:11 avimar

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 18 '19 01:01 stale[bot]