Fix rich media parsing some Amazon URLs

This commit is contained in:
Mark Felder 2024-05-25 16:27:59 -04:00
parent 354b700bed
commit 807782b7f9
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Parsing of RichMedia TTLs for Amazon URLs when query parameters are nil

View File

@ -23,7 +23,7 @@ defp aws_signed_url?(image) when is_binary(image) and image != "" do
%URI{host: host, query: query} = URI.parse(image)
is_binary(host) and String.contains?(host, "amazonaws.com") and
String.contains?(query, "X-Amz-Expires")
is_binary(query) and String.contains?(query, "X-Amz-Expires")
end
defp aws_signed_url?(_), do: nil