Skip to content

Commit 33095a9

Browse files
authored
Remove deprecated :next_protocols_advertised from ranch_ssl socket_opts (#111) (#112)
1 parent 553b43e commit 33095a9

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

lib/plug/cowboy.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,6 @@ defmodule Plug.Cowboy do
290290

291291
socket_opts =
292292
socket_opts
293-
|> Keyword.put_new(:next_protocols_advertised, ["h2", "http/1.1"])
294293
|> Keyword.put_new(:alpn_preferred_protocols, ["h2", "http/1.1"])
295294

296295
{:ranch_ssl, :cowboy_tls, %{transport_opts | socket_opts: socket_opts}}

test/plug/cowboy_test.exs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ defmodule Plug.CowboyTest do
6363
] = opts
6464

6565
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"]
6766
end
6867

6968
test "builds args for cowboy dispatch" do

0 commit comments

Comments
 (0)