add type check
This commit is contained in:
parent
40d5cbe37e
commit
6640ce7d24
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ defmodule HTTPSignatures do
|
||||||
end
|
end
|
||||||
|
|
||||||
# Sort map alphabetically to ensure stability
|
# Sort map alphabetically to ensure stability
|
||||||
defp stable_sort_headers(headers) do
|
defp stable_sort_headers(headers) when is_map(headers) do
|
||||||
headers
|
headers
|
||||||
|> Enum.into([])
|
|> Enum.into([])
|
||||||
|> Enum.sort_by(fn {k, _v} -> k end)
|
|> Enum.sort_by(fn {k, _v} -> k end)
|
||||||
|
|
Loading…
Reference in a new issue