Closed nicolaspernoud closed 2 years ago
Hello again,
I posted the same issue on the axum-server crate repo. To solve it, the alpn protocols should be explicitely listed :
rustls_config.alpn_protocols = vec![b"h2".to_vec(), b"http/1.1".to_vec()];
Maybe it should be documented, or put into the example code (?). Thanks.
Hello,
I use rustls-acme to create automatically Let's Encrypt certificates like in https://github.com/FlorianUekermann/rustls-acme/blob/main/examples/low_level_axum.rs . It works very well, but the server seems not to respond with HTTP/2, even if the http2 feature is enabled in axum.
How can I enable HTTP/2 ? I think it is something to do with the acceptor and ALPN protocol, but I am kind of stuck...
Thanks and best regards.