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
1 changed files with 1 additions and 1 deletions

View File

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