Skip to content

Commit

Permalink
Merge pull request #14 from martinsumner/develop-2.9
Browse files Browse the repository at this point in the history
Develop 2.9
  • Loading branch information
martinsumner committed Feb 14, 2019
2 parents 494d14f + 070daa6 commit 59ceba1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{xref_checks, [undefined_function_calls]}.

{deps,
[{mochiweb, "2.9.0.*", {git, "git://github.com/basho/mochiweb.git", {tag, "v2.9.0p2"}}}
[{mochiweb, ".*", {git, "git://github.com/basho/mochiweb.git", {branch, "develop-2.9"}}}
]}.

{dev_only_deps,
Expand Down
9 changes: 8 additions & 1 deletion src/webmachine_mochiweb.erl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@
-define (WM_OPTION_DEFAULTS, [{error_handler, webmachine_error_handler}]).

start(Options) ->
{DispatchList, PName, DGroup, WMOptions, OtherOptions} = get_wm_options(Options),
{DispatchList, PName, DGroup, WMOptions, OtherOptions0} = get_wm_options(Options),
OtherOptions =
case application:get_env(webmachine, recbuf) of
{ok, RecBuf} ->
[{recbuf, RecBuf}|OtherOptions0];
_ ->
OtherOptions0
end,
webmachine_router:init_routes(DGroup, DispatchList),
_ = [application_set_unless_env_or_undef(K, V) || {K, V} <- WMOptions],
MochiName = list_to_atom(to_list(PName) ++ "_mochiweb"),
Expand Down

0 comments on commit 59ceba1

Please sign in to comment.