mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
Merge branch 'fix/hackney_max_body_param' into 'develop'
Add `with_body: true` to requests relying on `max_body: val` Closes #778 See merge request pleroma/pleroma!1049
This commit is contained in:
commit
31c06dba5a
2 changed files with 4 additions and 2 deletions
|
@ -6,7 +6,8 @@ defmodule Pleroma.Web.RelMe do
|
|||
@hackney_options [
|
||||
pool: :media,
|
||||
recv_timeout: 2_000,
|
||||
max_body: 2_000_000
|
||||
max_body: 2_000_000,
|
||||
with_body: true
|
||||
]
|
||||
|
||||
if Mix.env() == :test do
|
||||
|
|
|
@ -12,7 +12,8 @@ defmodule Pleroma.Web.RichMedia.Parser do
|
|||
@hackney_options [
|
||||
pool: :media,
|
||||
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"}
|
||||
|
|
Loading…
Reference in a new issue