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
|
||||
|
||||
# Sort map alphabetically to ensure stability
|
||||
defp stable_sort_headers(headers) do
|
||||
defp stable_sort_headers(headers) when is_map(headers) do
|
||||
headers
|
||||
|> Enum.into([])
|
||||
|> Enum.sort_by(fn {k, _v} -> k end)
|
||||
|
|
Loading…
Reference in a new issue