aboutsummaryrefslogtreecommitdiffstats
path: root/examples/rest_basic_auth/src/rest_basic_auth_app.erl
diff options
context:
space:
mode:
Diffstat (limited to 'examples/rest_basic_auth/src/rest_basic_auth_app.erl')
-rw-r--r--examples/rest_basic_auth/src/rest_basic_auth_app.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/rest_basic_auth/src/rest_basic_auth_app.erl b/examples/rest_basic_auth/src/rest_basic_auth_app.erl
index c19349d..cc1718d 100644
--- a/examples/rest_basic_auth/src/rest_basic_auth_app.erl
+++ b/examples/rest_basic_auth/src/rest_basic_auth_app.erl
@@ -16,9 +16,9 @@ start(_Type, _Args) ->
{"/", toppage_handler, []}
]}
]),
- {ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
- {env, [{dispatch, Dispatch}]}
- ]),
+ {ok, _} = cowboy:start_clear(http, 100, [{port, 8080}], #{
+ env => #{dispatch => Dispatch}
+ }),
rest_basic_auth_sup:start_link().
stop(_State) ->