0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-16 05:00:24 +00:00

Added warn compile options. Fixed compile warnings.

This commit is contained in:
Egobrain 2013-02-21 10:27:26 +04:00
parent 3181382d72
commit 73c718dcb5
3 changed files with 19 additions and 14 deletions

View file

@ -53,9 +53,9 @@
execute(Req, Env) ->
{_, Handler} = lists:keyfind(handler, 1, Env),
{_, HandlerOpts} = lists:keyfind(handler_opts, 1, Env),
case lists:keyfind(loop_max_buffer, 1, Env) of
false -> MaxBuffer = 5000, ok;
{_, MaxBuffer} -> ok
MaxBuffer = case lists:keyfind(loop_max_buffer, 1, Env) of
false -> 5000;
{_, MaxBuffer0} -> MaxBuffer0
end,
handler_init(Req, #state{env=Env, loop_max_buffer=MaxBuffer},
Handler, HandlerOpts).