From 6a7ac13457b31ae12c1bfb7018e568592fa97bfb Mon Sep 17 00:00:00 2001 From: Karol Konkol <56369082+Karolk99@users.noreply.github.com> Date: Fri, 15 Mar 2024 15:46:36 +0100 Subject: [PATCH] Fix httppoison for aws (#167) --- lib/jellyfish/component/hls/httpoison.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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