From 616f6673130a6153030bd89e5abe2cdac0a69775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Mon, 9 Sep 2024 21:14:57 +0200 Subject: [PATCH] Fix inform headers --- lib/plug/cowboy/conn.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/plug/cowboy/conn.ex b/lib/plug/cowboy/conn.ex index cbfb78e..e404974 100644 --- a/lib/plug/cowboy/conn.ex +++ b/lib/plug/cowboy/conn.ex @@ -87,8 +87,7 @@ defmodule Plug.Cowboy.Conn do @impl true def inform(req, status, headers) do - req = to_headers_map(req, headers) - :cowboy_req.inform(status, %{}, req) + :cowboy_req.inform(status, to_headers_map(headers), req) end @impl true