1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Plugs.Parsers do
6 @moduledoc "Initializes Plug.Parsers with upload limit set at boot time"
12 parsers: [:urlencoded, :multipart, :json],
15 length: Pleroma.Config.get([:instance, :upload_limit]),
16 body_reader: {Pleroma.Web.Plugs.DigestPlug, :read_body, []}
20 defdelegate call(conn, opts), to: Plug.Parsers