diff options
author | Loïc Hoguin <[email protected]> | 2016-06-14 11:30:42 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-06-14 11:30:42 +0200 |
commit | a55679b231b61e7d2269142efa337ae6face2343 (patch) | |
tree | d001d12e8601113bd3f354ba9f442941f5f2926f /examples/rest_basic_auth/src/rest_basic_auth_app.erl | |
parent | a4fb56018ec396e4d889f76cf7ef5c73fbe82cc1 (diff) | |
download | cowboy-a55679b231b61e7d2269142efa337ae6face2343.tar.gz cowboy-a55679b231b61e7d2269142efa337ae6face2343.tar.bz2 cowboy-a55679b231b61e7d2269142efa337ae6face2343.zip |
Fix rest_basic_auth example
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.erl | 6 |
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) -> |