Skip to content

Commit

Permalink
Fix httppoison for aws (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
Karolk99 authored Mar 15, 2024
1 parent 9d522fb commit 6a7ac13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/jellyfish/component/hls/httpoison.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a7ac13

Please sign in to comment.