aboutsummaryrefslogtreecommitdiffstats
path: root/examples/echo_get/src/echo_get_app.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-06-08 20:18:09 +0200
committerLoïc Hoguin <[email protected]>2016-06-08 20:18:09 +0200
commit98323c2d72ffa0a164d525b39290125a6ab3b070 (patch)
treeb11cdf4eb971f1a76856edfe047d1949feef5e84 /examples/echo_get/src/echo_get_app.erl
parentfd07b389524f54f79175a5ac5d9f9050fb66bc61 (diff)
downloadcowboy-98323c2d72ffa0a164d525b39290125a6ab3b070.tar.gz
cowboy-98323c2d72ffa0a164d525b39290125a6ab3b070.tar.bz2
cowboy-98323c2d72ffa0a164d525b39290125a6ab3b070.zip
Fix echo_get example
Diffstat (limited to 'examples/echo_get/src/echo_get_app.erl')
-rw-r--r--examples/echo_get/src/echo_get_app.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/echo_get/src/echo_get_app.erl b/examples/echo_get/src/echo_get_app.erl
index d661e9c..b9e0d31 100644
--- a/examples/echo_get/src/echo_get_app.erl
+++ b/examples/echo_get/src/echo_get_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}
+ }),
echo_get_sup:start_link().
stop(_State) ->