summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2024-08-27 21:56:02 -0400
committerMark Felder <feld@feld.me>2024-08-27 21:56:02 -0400
commit44901502ffd7713d498976e2d2b9a55c298f1876 (patch)
treee69b354fafbe18a5d0b58bc7b89cc6e7ae46a91f
parent116fe77b77eedd2feb073d3be256fea08169c95b (diff)
downloadpleroma-44901502ffd7713d498976e2d2b9a55c298f1876.tar.gz
pleroma-44901502ffd7713d498976e2d2b9a55c298f1876.zip
Fix incorrect identifier for the with statement
-rw-r--r--lib/pleroma/web/rich_media/helpers.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/rich_media/helpers.ex b/lib/pleroma/web/rich_media/helpers.ex
index 880d19218..b81984343 100644
--- a/lib/pleroma/web/rich_media/helpers.ex
+++ b/lib/pleroma/web/rich_media/helpers.ex
@@ -20,7 +20,7 @@ defmodule Pleroma.Web.RichMedia.Helpers do
defp stream(url) do
with {_, {:ok, %Tesla.Env{status: 200, body: stream_body, headers: headers}}} <-
- {:head, Pleroma.HTTP.get(url, req_headers(), http_options())},
+ {:get, Pleroma.HTTP.get(url, req_headers(), http_options())},
{_, :ok} <- {:content_type, check_content_type(headers)},
{_, :ok} <- {:content_length, check_content_length(headers)},
body <- Enum.into(stream_body, <<>>) do