1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2025-01-24 22:00:22 +01:00

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: ["*/*"],