Skip to content

Commit 0d00252

Browse files
committed
Updated example 12 note in the readme
1 parent c31e445 commit 0d00252

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,8 +784,9 @@ See also [example #12](examples) for more details.
784784
buffered in the request body.
785785
It is imperative that the request body is buffered by a prior middleware
786786
handler as given in the example above.
787-
This previous middleware handler is also responsible for rejecting incoming
788-
requests that exceed allowed message sizes (such as big file uploads).
787+
This previous middleware handler ignores requests that exceed allowed
788+
message sizes (such as big file uploads). But still passes on the request
789+
once the full body has been transmitted, resulting in an empty body.
789790
If you use this middleware without buffering first, it will try to parse an
790791
empty (streaming) body and may thus assume an empty data structure.
791792
See also [`RequestBodyBufferMiddleware`](#requestbodybuffermiddleware) for

0 commit comments

Comments
 (0)