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:
parent
06274cd8ab
commit
3865415a60
1 changed files with 2 additions and 1 deletions
|
@ -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}};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue