We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
client_opts
1 parent 4642c69 commit bfc6cabCopy full SHA for bfc6cab
lib/phoenix/sync/electric.ex
@@ -528,7 +528,11 @@ defmodule Phoenix.Sync.Electric do
528
defp http_mode_plug_opts(electric_config) do
529
with {:ok, client} <- configure_client(electric_config, :http) do
530
# don't decode the body - just pass it directly
531
- client = %{client | fetch: {Electric.Client.Fetch.HTTP, [request: [raw: true]]}}
+ request_opts =
532
+ Keyword.get(electric_config, :request_opts, [])
533
+ |> Keyword.merge(raw: true)
534
+
535
+ client = %{client | fetch: {Electric.Client.Fetch.HTTP, [request: request_opts]}}
536
{:ok, %Phoenix.Sync.Electric.ClientAdapter{client: client}}
537
end
538
0 commit comments