From d72236b6c3e91d6d5e8a71e6f6e8821053b2ea8e Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Mon, 22 Mar 2021 14:37:17 -0400 Subject: [PATCH] needs explicit port --- lib/camo/image.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/camo/image.ex b/lib/camo/image.ex index 5c021970..00e8bae9 100644 --- a/lib/camo/image.ex +++ b/lib/camo/image.ex @@ -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)