diff --git a/lib/jellyfish/component/hls/httpoison.ex b/lib/jellyfish/component/hls/httpoison.ex index 352ff817..0db6ec9a 100644 --- a/lib/jellyfish/component/hls/httpoison.ex +++ b/lib/jellyfish/component/hls/httpoison.ex @@ -6,12 +6,12 @@ defmodule Jellyfish.Component.HLS.HTTPoison do @impl true def request(method, url, body \\ "", headers \\ [], http_opts \\ []) do case HTTPoison.request(method, url, body, headers, http_opts) do - {:ok, %HTTPoison.Response{status_code: status, headers: headers}} -> - {:ok, %{status_code: status, headers: headers}} - {:ok, %HTTPoison.Response{status_code: status, headers: headers, body: body}} -> {:ok, %{status_code: status, headers: headers, body: body}} + {:ok, %HTTPoison.Response{status_code: status, headers: headers}} -> + {:ok, %{status_code: status, headers: headers}} + {:error, %HTTPoison.Error{reason: reason}} -> {:error, reason} end