From be99a6cd456f3605a8cb3f5af8ee4870adb9cbd2 Mon Sep 17 00:00:00 2001 From: Miha Zupan Date: Tue, 27 Aug 2024 16:18:01 +0200 Subject: [PATCH] Document that MaxRequestBodySize only applies to the forwarder --- src/ReverseProxy/Configuration/RouteConfig.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ReverseProxy/Configuration/RouteConfig.cs b/src/ReverseProxy/Configuration/RouteConfig.cs index 12975bfb6..dd9cfb6d4 100644 --- a/src/ReverseProxy/Configuration/RouteConfig.cs +++ b/src/ReverseProxy/Configuration/RouteConfig.cs @@ -3,6 +3,8 @@ using System; using System.Collections.Generic; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Routing; using Yarp.ReverseProxy.Utilities; namespace Yarp.ReverseProxy.Configuration; @@ -86,6 +88,8 @@ public sealed record RouteConfig /// /// An optional override for how large request bodies can be in bytes. If set, this overrides the server's default (30MB) per request. /// Set to '-1' to disable the limit for this route. + /// Note that this limit applies only to the YARP forwarder middleware, it does not apply when reading the request body from a custom middleware registered via + /// . /// public long? MaxRequestBodySize { get; init; }