aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http_req.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-03-22 13:23:40 +0100
committerLoïc Hoguin <[email protected]>2011-03-22 13:23:40 +0100
commit3865415a601fe412609b095e7bcb281c735edec3 (patch)
tree74b64da379e62f35577e7c46eb4689f6b5604347 /src/cowboy_http_req.erl
parent06274cd8abbf7d23150c3cef64e0d1eb052b9ed7 (diff)
downloadcowboy-3865415a601fe412609b095e7bcb281c735edec3.tar.gz
cowboy-3865415a601fe412609b095e7bcb281c735edec3.tar.bz2
cowboy-3865415a601fe412609b095e7bcb281c735edec3.zip
Boring 80-col change.
Diffstat (limited to 'src/cowboy_http_req.erl')
-rw-r--r--src/cowboy_http_req.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cowboy_http_req.erl b/src/cowboy_http_req.erl
index 5a1ec2b..5f71018 100644
--- a/src/cowboy_http_req.erl
+++ b/src/cowboy_http_req.erl
@@ -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}};