diff options
author | Loïc Hoguin <[email protected]> | 2016-06-15 13:27:31 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-06-15 13:27:31 +0200 |
commit | 43ccea87bc329d29ac427c32d731753f980fe704 (patch) | |
tree | 1945f6563229de5f593c1e8a8f3707b60e4aee6e /examples/rest_pastebin/src | |
parent | 5003bae369901a6c771075ac4ef600d49b019570 (diff) | |
download | cowboy-43ccea87bc329d29ac427c32d731753f980fe704.tar.gz cowboy-43ccea87bc329d29ac427c32d731753f980fe704.tar.bz2 cowboy-43ccea87bc329d29ac427c32d731753f980fe704.zip |
Fix rest_pastebin example
Diffstat (limited to 'examples/rest_pastebin/src')
-rw-r--r-- | examples/rest_pastebin/src/rest_pastebin_app.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/rest_pastebin/src/rest_pastebin_app.erl b/examples/rest_pastebin/src/rest_pastebin_app.erl index 10ba4c5..98ffe84 100644 --- a/examples/rest_pastebin/src/rest_pastebin_app.erl +++ b/examples/rest_pastebin/src/rest_pastebin_app.erl @@ -16,9 +16,9 @@ start(_Type, _Args) -> {"/[:paste_id]", 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_pastebin_sup:start_link(). stop(_State) -> |