Skip to content

Commit cfc9ca3

Browse files
authored
Fix Avrora.HTTPClient.post/3 guard from binary to map (#139)
1 parent ed27101 commit cfc9ca3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/avrora/http_client.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ defmodule Avrora.HTTPClient do
1919

2020
@doc false
2121
@spec post(String.t(), term(), keyword(String.t())) :: {:ok, map()} | {:error, term()}
22-
def post(url, payload, options \\ []) when is_binary(payload) do
22+
def post(url, payload, options \\ []) when is_map(payload) do
2323
with {:ok, body} <- Jason.encode(payload),
2424
{:ok, content_type} <- Keyword.fetch(options, :content_type),
2525
{:ok, headers} <- extract_headers(options),

0 commit comments

Comments
 (0)