Skip to content

Commit d6bf5f7

Browse files
Fix error when logging
Co-authored-by: madnificent <[email protected]>
1 parent 1f5d779 commit d6bf5f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/manipulators/cache_key_logger.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ defmodule Manipulators.CacheKeyLogger do
3838
end
3939

4040
defp header_value(headers, header_name) do
41-
header = Enum.find(headers, header_name)
41+
header =
42+
headers
43+
|> Enum.find({nil, "[]"}, &match?({header_name, _}, &1))
4244

4345
if header do
4446
elem(header, 1)

0 commit comments

Comments
 (0)