aboutsummaryrefslogtreecommitdiffstats
path: root/examples/rest_hello_world/src/rest_hello_world_app.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-06-09 16:33:31 +0200
committerLoïc Hoguin <[email protected]>2016-06-09 16:33:31 +0200
commit4293a40d9e922bc00f25d6c7e328f86e102275a0 (patch)
treec8d46b36acf08fbf06990bf7cf6f67f26c28f3cf /examples/rest_hello_world/src/rest_hello_world_app.erl
parent5ca49fefa9006f4e9c853adf69da93f6f6bdf7bd (diff)
downloadcowboy-4293a40d9e922bc00f25d6c7e328f86e102275a0.tar.gz
cowboy-4293a40d9e922bc00f25d6c7e328f86e102275a0.tar.bz2
cowboy-4293a40d9e922bc00f25d6c7e328f86e102275a0.zip
Fix rest_hello_world example
Diffstat (limited to 'examples/rest_hello_world/src/rest_hello_world_app.erl')
-rw-r--r--examples/rest_hello_world/src/rest_hello_world_app.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/rest_hello_world/src/rest_hello_world_app.erl b/examples/rest_hello_world/src/rest_hello_world_app.erl
index a662c3d..f966029 100644
--- a/examples/rest_hello_world/src/rest_hello_world_app.erl
+++ b/examples/rest_hello_world/src/rest_hello_world_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_hello_world_sup:start_link().
stop(_State) ->