aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_handler.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-02-22 13:57:11 +0100
committerLoïc Hoguin <[email protected]>2013-02-22 13:57:11 +0100
commitf7fa4016ec71e3b406be3fec73f63aa01b370eef (patch)
tree06db546859287826c95caabbe460eaa363fcd007 /src/cowboy_handler.erl
parent3181382d72d0f7be681e150cfa2baabec5c2861b (diff)
parent73c718dcb5a5c7bff77f34bc22f3b68f4683bec3 (diff)
downloadcowboy-f7fa4016ec71e3b406be3fec73f63aa01b370eef.tar.gz
cowboy-f7fa4016ec71e3b406be3fec73f63aa01b370eef.tar.bz2
cowboy-f7fa4016ec71e3b406be3fec73f63aa01b370eef.zip
Merge branch 'fix-warnings' of git://github.com/Egobrain/cowboy
Diffstat (limited to 'src/cowboy_handler.erl')
-rw-r--r--src/cowboy_handler.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cowboy_handler.erl b/src/cowboy_handler.erl
index fd2e085..ab09a97 100644
--- a/src/cowboy_handler.erl
+++ b/src/cowboy_handler.erl
@@ -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).