From d495582029c8b3e911f20be9f2a229eb1b8a2902 Mon Sep 17 00:00:00 2001 From: Yurii Rashkovskii Date: Fri, 4 May 2012 09:33:55 -0700 Subject: Fixes invalid type specification for cowboy_http_req:multipart_data/1 --- src/cowboy_http_req.erl | 4 ++-- 1 file 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 {headers, Headers} followed by a sequence of -%% {data, Data} tuples and finally end_of_part. When there +%% {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(#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} = -- cgit v1.2.3