actually fix it

This commit is contained in:
byte[] 2019-11-10 19:24:58 -05:00
parent 6808ce1d12
commit e231451abd

View file

@ -5,7 +5,7 @@ defmodule Camo.Image do
if !host or String.ends_with?(host, cdn_host()) do
input
else
camo_digest = :crypto.hmac(:sha, camo_key(), input) |> Base.encode16()
camo_digest = :crypto.hmac(:sha, camo_key(), input) |> Base.encode16(case: :lower)
camo_uri = %URI{
host: camo_host(),
path: "/" <> camo_digest,