We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 553b43e commit 33095a9Copy full SHA for 33095a9
2 files changed
lib/plug/cowboy.ex
@@ -290,7 +290,6 @@ defmodule Plug.Cowboy do
290
291
socket_opts =
292
socket_opts
293
- |> Keyword.put_new(:next_protocols_advertised, ["h2", "http/1.1"])
294
|> Keyword.put_new(:alpn_preferred_protocols, ["h2", "http/1.1"])
295
296
{:ranch_ssl, :cowboy_tls, %{transport_opts | socket_opts: socket_opts}}
test/plug/cowboy_test.exs
@@ -63,7 +63,6 @@ defmodule Plug.CowboyTest do
63
] = opts
64
65
assert Keyword.get(socket_opts, :alpn_preferred_protocols) == ["h2", "http/1.1"]
66
- assert Keyword.get(socket_opts, :next_protocols_advertised) == ["h2", "http/1.1"]
67
end
68
69
test "builds args for cowboy dispatch" do
0 commit comments