Skip to content
Snippets Groups Projects
Commit 773f532b authored by kaniini's avatar kaniini
Browse files

http: actually pass the options list to the Connection factory

parent 50ba4ba2
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ def request(method, url, body \\ "", headers \\ [], options \\ []) do
|> Builder.add_param(:body, :body, body)
|> Builder.add_param(:query, :query, params)
|> Enum.into([])
|> (&Tesla.request(Connection.new(), &1)).()
|> (&Tesla.request(Connection.new(options), &1)).()
rescue
e ->
{:error, e}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment