needs explicit port

This commit is contained in:
byte[] 2021-03-22 14:37:17 -04:00
parent 796d07f393
commit d72236b6c3

View file

@ -10,7 +10,7 @@ defmodule Camo.Image do
input
uri.host in [cdn_host(), camo_host()] ->
URI.to_string(update_in(uri.scheme, fn _ -> "https" end))
URI.to_string(%{uri | scheme: "https", port: 443})
true ->
camo_digest = :crypto.hmac(:sha, camo_key(), input) |> Base.encode16(case: :lower)