Skip to content

Commit

Permalink
Remove next_protocols_advertised
Browse files Browse the repository at this point in the history
  • Loading branch information
zuiderkwast authored and essen committed Dec 19, 2023
1 parent 8fdb74a commit 7400b04
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/cowboy.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 7400b04

Please sign in to comment.