From 354ccef567f2fc1eca8e786ed880afa6b296f19b Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Sun, 3 Dec 2017 21:42:56 +0100 Subject: [PATCH] Updated example 12 note in the readme --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 21eec0b8..6a8f8957 100644 --- a/README.md +++ b/README.md @@ -784,8 +784,9 @@ See also [example #12](examples) for more details. buffered in the request body. It is imperative that the request body is buffered by a prior middleware handler as given in the example above. - This previous middleware handler is also responsible for rejecting incoming - requests that exceed allowed message sizes (such as big file uploads). + This previous middleware handler ignores requests that exceed allowed + message sizes (such as big file uploads). But still passes on the request + once the full body has been transmitted, resulting in an empty body. If you use this middleware without buffering first, it will try to parse an empty (streaming) body and may thus assume an empty data structure. See also [`RequestBodyBufferMiddleware`](#requestbodybuffermiddleware) for