0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Boring 80-col change.

This commit is contained in:
Loïc Hoguin 2011-03-22 13:23:40 +01:00
parent 06274cd8ab
commit 3865415a60

View file

@ -153,7 +153,8 @@ body(Req) ->
%% @todo We probably want to configure the timeout.
-spec body(Length::non_neg_integer(), Req::#http_req{})
-> {ok, Body::binary(), Req::#http_req{}} | {error, Reason::posix()}.
body(Length, Req=#http_req{socket=Socket, transport=Transport, body_state=waiting}) ->
body(Length, Req=#http_req{socket=Socket, transport=Transport,
body_state=waiting}) ->
Transport:setopts(Socket, [{packet, raw}]),
case Transport:recv(Socket, Length, 5000) of
{ok, Body} -> {ok, Body, Req#http_req{body_state=done}};