Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F140653
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
895 B
Referenced Files
None
Subscribers
None
View Options
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
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Jan 20, 10:47 PM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
55615
Default Alt Text
(895 B)
Attached To
Mode
R28 tesla
Attached
Detach File
Event Timeline
Log In to Comment