aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_protocol.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-09-15 00:59:49 +0200
committerLoïc Hoguin <[email protected]>2012-09-15 00:59:49 +0200
commit4040a9f72d080786f59533c398e2e5662087d92d (patch)
tree34dd4a041572ef84391d188a2d4ef5a0e7784d5a /src/cowboy_protocol.erl
parent79839b7bb5ae3aef77eb7ab704efa6168927845f (diff)
downloadcowboy-4040a9f72d080786f59533c398e2e5662087d92d.tar.gz
cowboy-4040a9f72d080786f59533c398e2e5662087d92d.tar.bz2
cowboy-4040a9f72d080786f59533c398e2e5662087d92d.zip
Separate multipart from body_state
Diffstat (limited to 'src/cowboy_protocol.erl')
-rw-r--r--src/cowboy_protocol.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_protocol.erl b/src/cowboy_protocol.erl
index 65012a5..2dd7ad0 100644
--- a/src/cowboy_protocol.erl
+++ b/src/cowboy_protocol.erl
@@ -424,7 +424,7 @@ ensure_body_processed(Req=#http_req{body_state=waiting}) ->
{ok, Req2} -> {ok, Req2#http_req.buffer};
{error, _Reason} -> {close, <<>>}
end;
-ensure_body_processed(Req=#http_req{body_state={multipart, _, _}}) ->
+ensure_body_processed(Req=#http_req{body_state={stream, _, _, _}}) ->
{ok, Req2} = cowboy_req:multipart_skip(Req),
ensure_body_processed(Req2).