Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
773f532b
Commit
773f532b
authored
Mar 07, 2019
by
kaniini
Browse files
http: actually pass the options list to the Connection factory
parent
50ba4ba2
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/http/http.ex
View file @
773f532b
...
...
@@ -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
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment