aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-05-15 14:53:28 +0200
committerLoïc Hoguin <[email protected]>2013-05-15 14:53:28 +0200
commita45787208efb1331050a02b1e01640a27b7e2c3c (patch)
tree3c39c0fe38be1df35e333bfda6524623ed9e52ce
parent76c6aa2183bd29eeb98f82cd287b7302d3d7f827 (diff)
downloadcowboy-a45787208efb1331050a02b1e01640a27b7e2c3c.tar.gz
cowboy-a45787208efb1331050a02b1e01640a27b7e2c3c.tar.bz2
cowboy-a45787208efb1331050a02b1e01640a27b7e2c3c.zip
Fix two incorrect comments in cowboy_req
-rw-r--r--src/cowboy_req.erl5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cowboy_req.erl b/src/cowboy_req.erl
index a8da0e5..6eb14c7 100644
--- a/src/cowboy_req.erl
+++ b/src/cowboy_req.erl
@@ -608,7 +608,7 @@ stream_body(Req) ->
%% for each streamed part, and {done, Req} when it's finished streaming.
%%
%% You can limit the size of the chunks being returned by using the
-%% second argument which is the size in bytes. It defaults to 1000000 bytes.
+%% first argument which is the size in bytes. It defaults to 1000000 bytes.
-spec stream_body(non_neg_integer(), Req) -> {ok, binary(), Req}
| {done, Req} | {error, atom()} when Req::req().
stream_body(MaxLength, Req=#http_req{body_state=waiting, version=Version,
@@ -787,9 +787,6 @@ body_qs(MaxBodyLength, Req) ->
%% this function returns <em>{headers, Headers}</em> followed by a sequence of
%% <em>{body, Data}</em> tuples and finally <em>end_of_part</em>. When there
%% is no part to parse anymore, <em>eof</em> is returned.
-%%
-%% If the request Content-Type is not a multipart one, <em>{error, badarg}</em>
-%% is returned.
-spec multipart_data(Req)
-> {headers, cowboy_http:headers(), Req} | {body, binary(), Req}
| {end_of_part | eof, Req} when Req::req().