diff options
author | rinpatch <rinpatch@sdf.org> | 2019-12-08 21:08:25 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-12-08 21:08:25 +0300 |
commit | 3c45ed4f4752bb2dce3ca2e9a153cb278df685fb (patch) | |
tree | 3ccdb42cd070cd41a43398a182b0aa7a02ab2841 /lib/pleroma/web/endpoint.ex | |
parent | af5fef1f228a1781d7d9cad490d3b3a783389f5e (diff) | |
download | pleroma-3c45ed4f4752bb2dce3ca2e9a153cb278df685fb.tar.gz |
OTP: Fix runtime upload limit config being ignored
Closes #1109
Diffstat (limited to 'lib/pleroma/web/endpoint.ex')
-rw-r--r-- | lib/pleroma/web/endpoint.ex | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/pleroma/web/endpoint.ex b/lib/pleroma/web/endpoint.ex index 49735b5c2..bbea31682 100644 --- a/lib/pleroma/web/endpoint.ex +++ b/lib/pleroma/web/endpoint.ex @@ -61,14 +61,7 @@ defmodule Pleroma.Web.Endpoint do plug(Plug.RequestId) plug(Plug.Logger) - plug( - Plug.Parsers, - parsers: [:urlencoded, :multipart, :json], - pass: ["*/*"], - json_decoder: Jason, - length: Pleroma.Config.get([:instance, :upload_limit]), - body_reader: {Pleroma.Web.Plugs.DigestPlug, :read_body, []} - ) + plug(Pleroma.Plugs.Parsers) plug(Plug.MethodOverride) plug(Plug.Head) |