mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 04:10:24 +00:00
fixup! Use maps:fold for cowboy_http's set_options for code clarity
This commit is contained in:
parent
0026ae19ba
commit
ab8aeb424e
1 changed files with 3 additions and 1 deletions
|
@ -1272,7 +1272,9 @@ commands(State0, StreamID, [{set_options, SetOpts}|Tail]) ->
|
|||
StateF#state{overriden_opts=Opts#{chunked => Chunked}};
|
||||
(idle_timeout, IdleTimeout, StateF=#state{overriden_opts=Opts}) ->
|
||||
set_timeout(StateF#state{overriden_opts=Opts#{idle_timeout => IdleTimeout}},
|
||||
idle_timeout)
|
||||
idle_timeout);
|
||||
(_, _, StateF) ->
|
||||
StateF
|
||||
end, State0, SetOpts),
|
||||
commands(State, StreamID, Tail);
|
||||
%% Stream shutdown.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue