media_proxy: switch from :crypto.hmac to :crypto.mac
This commit is contained in:
parent
166455c884
commit
168687eef2
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ def decode_url(encoded) do
|
|||
end
|
||||
|
||||
defp signed_url(url) do
|
||||
:crypto.hmac(:sha, Config.get([Endpoint, :secret_key_base]), url)
|
||||
:crypto.mac(:hmac, :sha, Config.get([Endpoint, :secret_key_base]), url)
|
||||
end
|
||||
|
||||
def filename(url_or_path) do
|
||||
|
|
Loading…
Reference in a new issue