0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 04:10:24 +00:00

Remove next_protocols_advertised

This commit is contained in:
Viktor Söderqvist 2023-12-18 22:23:52 +01:00 committed by Loïc Hoguin
parent 8fdb74a510
commit 7400b04b02
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -54,7 +54,6 @@ start_tls(Ref, TransOpts0, ProtoOpts0) ->
TransOpts1 = ranch:normalize_opts(TransOpts0),
SocketOpts = maps:get(socket_opts, TransOpts1, []),
TransOpts2 = TransOpts1#{socket_opts => [
{next_protocols_advertised, [<<"h2">>, <<"http/1.1">>]},
{alpn_preferred_protocols, [<<"h2">>, <<"http/1.1">>]}
|SocketOpts]},
{TransOpts, ConnectionType} = ensure_connection_type(TransOpts2),