Page MenuHomePhorge

No OneTemporary

Size
895 B
Referenced Files
None
Subscribers
None
diff --git a/lib/tesla/adapter/ibrowse.ex b/lib/tesla/adapter/ibrowse.ex
index 023dde2..09cd9a7 100644
--- a/lib/tesla/adapter/ibrowse.ex
+++ b/lib/tesla/adapter/ibrowse.ex
@@ -1,25 +1,25 @@
if Code.ensure_loaded?(:ibrowse) do
defmodule Tesla.Adapter.Ibrowse do
def call(env, opts) do
with {:ok, status, headers, body} <- request(env, opts || []) do
%{env | status: status,
headers: headers,
body: body}
end
end
defp request(env, opts) do
body = env.body || []
handle :ibrowse.send_req(
Tesla.build_url(env.url, env.query) |> to_char_list,
Enum.into(env.headers, []),
env.method,
body,
- opts
+ opts ++ env.opts
)
end
defp handle({:error, {:conn_failed, error}}), do: error
defp handle(response), do: response
end
end

File Metadata

Mime Type
text/x-diff
Expires
Mon, Jan 20, 10:47 PM (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
55615
Default Alt Text
(895 B)

Event Timeline