aboutsummaryrefslogtreecommitdiffstats
path: root/examples/echo_get/src
diff options
context:
space:
mode:
authorUnix1 <[email protected]>2013-01-05 19:19:14 -0800
committerUnix1 <[email protected]>2013-01-05 19:19:14 -0800
commit33461ecdbd1554165d395bf63907e4f3e08712fc (patch)
tree465cc4d9bd8c9013c556f4cf3d36faf90e7fc1df /examples/echo_get/src
parentfaeb37ed80e1f2ae2bfa0c096b2a660c271adddb (diff)
downloadcowboy-33461ecdbd1554165d395bf63907e4f3e08712fc.tar.gz
cowboy-33461ecdbd1554165d395bf63907e4f3e08712fc.tar.bz2
cowboy-33461ecdbd1554165d395bf63907e4f3e08712fc.zip
Fix examples to follow new env tuple standard
This brings examples in line with the recent Middleware change.
Diffstat (limited to 'examples/echo_get/src')
-rw-r--r--examples/echo_get/src/echo_get_app.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/echo_get/src/echo_get_app.erl b/examples/echo_get/src/echo_get_app.erl
index b9551f0..b8def14 100644
--- a/examples/echo_get/src/echo_get_app.erl
+++ b/examples/echo_get/src/echo_get_app.erl
@@ -17,7 +17,7 @@ start(_Type, _Args) ->
]}
],
{ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
- {dispatch, Dispatch}
+ {env, [{dispatch, Dispatch}]}
]),
echo_get_sup:start_link().