aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYurii Rashkovskii <[email protected]>2012-05-04 09:33:55 -0700
committerYurii Rashkovskii <[email protected]>2012-05-04 09:33:55 -0700
commitd495582029c8b3e911f20be9f2a229eb1b8a2902 (patch)
tree325ec4447d3d4d338a2b03b66cd81b5af5a5cf4d /src
parent14b45fd8a91b8659a001559f5d84bf19611ee5d4 (diff)
downloadcowboy-d495582029c8b3e911f20be9f2a229eb1b8a2902.tar.gz
cowboy-d495582029c8b3e911f20be9f2a229eb1b8a2902.tar.bz2
cowboy-d495582029c8b3e911f20be9f2a229eb1b8a2902.zip
Fixes invalid type specification for cowboy_http_req:multipart_data/1
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_http_req.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_http_req.erl b/src/cowboy_http_req.erl
index f25c5eb..e8fd43a 100644
--- a/src/cowboy_http_req.erl
+++ b/src/cowboy_http_req.erl
@@ -563,14 +563,14 @@ body_qs(Req=#http_req{urldecode={URLDecFun, URLDecArg}}) ->
%%
%% Use this function for multipart streaming. For each part in the request,
%% this function returns <em>{headers, Headers}</em> followed by a sequence of
-%% <em>{data, Data}</em> tuples and finally <em>end_of_part</em>. When there
+%% <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(#http_req{})
-> {{headers, cowboy_http:headers()}
- | {data, binary()} | end_of_part | eof,
+ | {body, binary()} | end_of_part | eof,
#http_req{}}.
multipart_data(Req=#http_req{body_state=waiting}) ->
{{<<"multipart">>, _SubType, Params}, Req2} =