From b634c026d2a4d97a1d484c23810cc922f1828878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20N=C3=A4slund?= Date: Thu, 5 Feb 2026 20:24:41 +0100 Subject: [PATCH] Remove deprecated :next_protocols_advertised from ranch_ssl socket_opts (#111) --- lib/plug/cowboy.ex | 1 - test/plug/cowboy_test.exs | 1 - 2 files changed, 2 deletions(-) diff --git a/lib/plug/cowboy.ex b/lib/plug/cowboy.ex index 4ed13e4..0f62b9b 100644 --- a/lib/plug/cowboy.ex +++ b/lib/plug/cowboy.ex @@ -290,7 +290,6 @@ defmodule Plug.Cowboy do socket_opts = socket_opts - |> Keyword.put_new(:next_protocols_advertised, ["h2", "http/1.1"]) |> Keyword.put_new(:alpn_preferred_protocols, ["h2", "http/1.1"]) {:ranch_ssl, :cowboy_tls, %{transport_opts | socket_opts: socket_opts}} diff --git a/test/plug/cowboy_test.exs b/test/plug/cowboy_test.exs index e5ea59c..83e0699 100644 --- a/test/plug/cowboy_test.exs +++ b/test/plug/cowboy_test.exs @@ -63,7 +63,6 @@ defmodule Plug.CowboyTest do ] = opts assert Keyword.get(socket_opts, :alpn_preferred_protocols) == ["h2", "http/1.1"] - assert Keyword.get(socket_opts, :next_protocols_advertised) == ["h2", "http/1.1"] end test "builds args for cowboy dispatch" do