Commit 31c06dba authored by kaniini's avatar kaniini
Browse files

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 !1049
parents 42d2c8d9 4615e562
Pipeline #10439 passed with stages
in 4 minutes and 23 seconds
......@@ -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"}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment