Skip to content

Commit

Permalink
Updated example 12 note in the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Dec 3, 2017
1 parent 279b24c commit 354ccef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 354ccef

Please sign in to comment.