aboutsummaryrefslogtreecommitdiffstats
path: root/examples/eventsource/src/eventsource_app.erl
diff options
context:
space:
mode:
Diffstat (limited to 'examples/eventsource/src/eventsource_app.erl')
-rw-r--r--examples/eventsource/src/eventsource_app.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/eventsource/src/eventsource_app.erl b/examples/eventsource/src/eventsource_app.erl
index 6ee8611..a5f4289 100644
--- a/examples/eventsource/src/eventsource_app.erl
+++ b/examples/eventsource/src/eventsource_app.erl
@@ -17,9 +17,9 @@ start(_Type, _Args) ->
{"/", cowboy_static, {priv_file, eventsource, "index.html"}}
]}
]),
- {ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
- {env, [{dispatch, Dispatch}]}
- ]),
+ {ok, _} = cowboy:start_clear(http, 100, [{port, 8080}], #{
+ env => #{dispatch => Dispatch}
+ }),
eventsource_sup:start_link().
stop(_State) ->