From a45787208efb1331050a02b1e01640a27b7e2c3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 15 May 2013 14:53:28 +0200 Subject: Fix two incorrect comments in cowboy_req --- src/cowboy_req.erl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') 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 {headers, Headers} followed by a sequence of %% {body, Data} tuples and finally end_of_part. When there %% is no part to parse anymore, eof is returned. -%% -%% If the request Content-Type is not a multipart one, {error, badarg} -%% is returned. -spec multipart_data(Req) -> {headers, cowboy_http:headers(), Req} | {body, binary(), Req} | {end_of_part | eof, Req} when Req::req(). -- cgit v1.2.3