Skip to content

Commit 119ea10

Browse files
authored
Merge branch 'main' into update/elixir-deps
2 parents 5a31104 + 523a225 commit 119ea10

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/supabase/fetcher.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ defmodule Supabase.Fetcher do
241241
when response: Response.t(),
242242
context: Request.t()
243243
defp handle_response({:ok, %Response{} = resp}, %Request{} = builder) do
244-
decode_body? = builder.options[:decode_body?] || true
245-
parse_http_err? = builder.options[:parse_http_error?] || true
244+
decode_body? = Keyword.get(builder.options, :decode_body?, true)
245+
parse_http_err? = Keyword.get(builder.options, :parse_http_error?, true)
246246
http_error_parser = builder.error_parser
247247
decoder = builder.body_decoder
248248
decoder_opts = builder.body_decoder_opts

test/supabase/fetcher/adapter/finch_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ defmodule Supabase.Fetcher.Adapter.FinchTest do
1717
client: client,
1818
builder:
1919
client
20-
|> Request.new()
20+
|> Request.new(decode_body?: true, parse_http_error?: true)
2121
|> Request.with_http_client(@mock)
2222
|> Request.with_method(:get)
2323
|> Request.with_database_url("/films")}

0 commit comments

Comments
 (0)