Clean up Plug.Parsers.MULTIPART deprecation warnings

There is no need to the length setting to :multipart. The length setting is global for all of the parsers.
This commit is contained in:
Mark Felder 2023-05-31 16:22:40 -04:00
parent ffee478ed0
commit 62322f71e2

View file

@ -116,7 +116,7 @@ defmodule Pleroma.Web.Endpoint do
plug(Plug.Parsers,
parsers: [
:urlencoded,
{:multipart, length: {Config, :get, [[:instance, :upload_limit]]}},
:multipart,
:json
],
pass: ["*/*"],