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
4615e562
Commit
4615e562
authored
Apr 12, 2019
by
Roman Chvanikov
Browse files
Add `with_body: true` to requests relying on `max_body: val`
parent
4977e96f
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/rel_me.ex
View file @
4615e562
...
@@ -6,7 +6,8 @@ defmodule Pleroma.Web.RelMe do
...
@@ -6,7 +6,8 @@ defmodule Pleroma.Web.RelMe do
@hackney_options
[
@hackney_options
[
pool:
:media
,
pool:
:media
,
recv_timeout:
2_000
,
recv_timeout:
2_000
,
max_body:
2_000_000
max_body:
2_000_000
,
with_body:
true
]
]
if
Mix
.
env
()
==
:test
do
if
Mix
.
env
()
==
:test
do
...
...
lib/pleroma/web/rich_media/parser.ex
View file @
4615e562
...
@@ -12,7 +12,8 @@ defmodule Pleroma.Web.RichMedia.Parser do
...
@@ -12,7 +12,8 @@ defmodule Pleroma.Web.RichMedia.Parser do
@hackney_options
[
@hackney_options
[
pool:
:media
,
pool:
:media
,
recv_timeout:
2_000
,
recv_timeout:
2_000
,
max_body:
2_000_000
max_body:
2_000_000
,
with_body:
true
]
]
def
parse
(
nil
),
do
:
{
:error
,
"No URL provided"
}
def
parse
(
nil
),
do
:
{
:error
,
"No URL provided"
}
...
...
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