diff options
author | Loïc Hoguin <[email protected]> | 2017-09-27 18:54:51 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-09-27 18:54:51 +0200 |
commit | bec019dce545872f7c7e5da520e46febe32a381f (patch) | |
tree | 2d6561fc3cdbd07bf9397335f4bb6cc1046b1fc3 | |
parent | 754d125f354e85061f9507a0b2c6b29802d09d6e (diff) | |
download | cowboy-bec019dce545872f7c7e5da520e46febe32a381f.tar.gz cowboy-bec019dce545872f7c7e5da520e46febe32a381f.tar.bz2 cowboy-bec019dce545872f7c7e5da520e46febe32a381f.zip |
Clarify a multipart example
-rw-r--r-- | doc/src/guide/multipart.asciidoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/guide/multipart.asciidoc b/doc/src/guide/multipart.asciidoc index 756d3b4..0825244 100644 --- a/doc/src/guide/multipart.asciidoc +++ b/doc/src/guide/multipart.asciidoc @@ -112,9 +112,9 @@ multipart(Req0) -> stream_file(Req0) -> case cowboy_req:read_part_body(Req0) of - {ok, _Body, Req} -> + {ok, _LastBodyChunk, Req} -> Req; - {more, _Body, Req} -> + {more, _BodyChunk, Req} -> stream_file(Req) end. ---- |