From 43ccea87bc329d29ac427c32d731753f980fe704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 15 Jun 2016 13:27:31 +0200 Subject: Fix rest_pastebin example --- examples/rest_pastebin/src/rest_pastebin_app.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/rest_pastebin/src/rest_pastebin_app.erl') 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) -> -- cgit v1.2.3