diff options
author | Loïc Hoguin <[email protected]> | 2016-06-13 16:26:00 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-06-13 16:26:00 +0200 |
commit | 6f75598b70801bbfb6828e5367bc7ed7477ad915 (patch) | |
tree | eabd6bdb5a0738b1f616aefdda718c3fedff2423 /examples/chunked_hello_world/src/chunked_hello_world_app.erl | |
parent | b82bb92f7e6cf751ec74fc8aec0bfea84bfc5415 (diff) | |
download | cowboy-6f75598b70801bbfb6828e5367bc7ed7477ad915.tar.gz cowboy-6f75598b70801bbfb6828e5367bc7ed7477ad915.tar.bz2 cowboy-6f75598b70801bbfb6828e5367bc7ed7477ad915.zip |
Fix chunked_hello_world example
Diffstat (limited to 'examples/chunked_hello_world/src/chunked_hello_world_app.erl')
-rw-r--r-- | examples/chunked_hello_world/src/chunked_hello_world_app.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/chunked_hello_world/src/chunked_hello_world_app.erl b/examples/chunked_hello_world/src/chunked_hello_world_app.erl index 0032d01..fe66908 100644 --- a/examples/chunked_hello_world/src/chunked_hello_world_app.erl +++ b/examples/chunked_hello_world/src/chunked_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} + }), chunked_hello_world_sup:start_link(). stop(_State) -> |