Skip to content

Commit 2a390d8

Browse files
committed
Temp fixup for elixir-mint/hpax#27
1 parent b29160f commit 2a390d8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/bandit/http2/connection.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ defmodule Bandit.HTTP2.Connection do
300300
# Header list size per RFC9113§6.5.2
301301
defp header_list_size(headers) do
302302
Enum.reduce(headers, 0, fn {name, value}, acc ->
303-
acc + byte_size(name) + byte_size(value) + 32
303+
# drop the `|| ""` once we depend on a hpax release with elixir-mint/hpax#27,
304+
acc + byte_size(name) + byte_size(value || "") + 32
304305
end)
305306
end
306307

0 commit comments

Comments
 (0)