diff options
author | Loïc Hoguin <[email protected]> | 2016-06-08 23:35:02 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-06-08 23:35:02 +0200 |
commit | 4ced1d09943a2f1a9e22426904560e93d41bb8bf (patch) | |
tree | 55f7969d140667bfd172db992e8a3164688c4e8f /examples/echo_post/src/echo_post_app.erl | |
parent | 1470f8831988845efa07091e452cd0bede09d7b6 (diff) | |
download | cowboy-4ced1d09943a2f1a9e22426904560e93d41bb8bf.tar.gz cowboy-4ced1d09943a2f1a9e22426904560e93d41bb8bf.tar.bz2 cowboy-4ced1d09943a2f1a9e22426904560e93d41bb8bf.zip |
Fix echo_post example
Diffstat (limited to 'examples/echo_post/src/echo_post_app.erl')
-rw-r--r-- | examples/echo_post/src/echo_post_app.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/echo_post/src/echo_post_app.erl b/examples/echo_post/src/echo_post_app.erl index 7d86c53..9bb7591 100644 --- a/examples/echo_post/src/echo_post_app.erl +++ b/examples/echo_post/src/echo_post_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_post_sup:start_link(). stop(_State) -> |