aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-01-06 04:15:03 -0800
committerLoïc Hoguin <[email protected]>2013-01-06 04:15:03 -0800
commit638d0345d1c738a6a4e73ce291f5ca6bfa4d0b5d (patch)
tree465cc4d9bd8c9013c556f4cf3d36faf90e7fc1df
parentfaeb37ed80e1f2ae2bfa0c096b2a660c271adddb (diff)
parent33461ecdbd1554165d395bf63907e4f3e08712fc (diff)
downloadcowboy-638d0345d1c738a6a4e73ce291f5ca6bfa4d0b5d.tar.gz
cowboy-638d0345d1c738a6a4e73ce291f5ca6bfa4d0b5d.tar.bz2
cowboy-638d0345d1c738a6a4e73ce291f5ca6bfa4d0b5d.zip
Merge pull request #359 from unix1/master
Fix examples to follow new env tuple standard
-rw-r--r--examples/chunked_hello_world/src/chunked_hello_world_app.erl2
-rw-r--r--examples/cookie/src/cookie_app.erl2
-rw-r--r--examples/echo_get/src/echo_get_app.erl2
-rw-r--r--examples/echo_post/src/echo_post_app.erl2
-rw-r--r--examples/hello_world/src/hello_world_app.erl2
-rw-r--r--examples/rest_hello_world/src/rest_hello_world_app.erl2
-rw-r--r--examples/static/src/static_app.erl2
7 files changed, 7 insertions, 7 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 41efd06..bdb073f 100644
--- a/examples/chunked_hello_world/src/chunked_hello_world_app.erl
+++ b/examples/chunked_hello_world/src/chunked_hello_world_app.erl
@@ -17,7 +17,7 @@ start(_Type, _Args) ->
]}
],
{ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
- {dispatch, Dispatch}
+ {env, [{dispatch, Dispatch}]}
]),
chunked_hello_world_sup:start_link().
diff --git a/examples/cookie/src/cookie_app.erl b/examples/cookie/src/cookie_app.erl
index 195d6b6..e527fb1 100644
--- a/examples/cookie/src/cookie_app.erl
+++ b/examples/cookie/src/cookie_app.erl
@@ -17,7 +17,7 @@ start(_Type, _Args) ->
]}
],
{ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
- {dispatch, Dispatch}
+ {env, [{dispatch, Dispatch}]}
]),
cookie_sup:start_link().
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().
diff --git a/examples/echo_post/src/echo_post_app.erl b/examples/echo_post/src/echo_post_app.erl
index 93f3bd5..83b4b3f 100644
--- a/examples/echo_post/src/echo_post_app.erl
+++ b/examples/echo_post/src/echo_post_app.erl
@@ -17,7 +17,7 @@ start(_Type, _Args) ->
]}
],
{ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
- {dispatch, Dispatch}
+ {env, [{dispatch, Dispatch}]}
]),
echo_post_sup:start_link().
diff --git a/examples/hello_world/src/hello_world_app.erl b/examples/hello_world/src/hello_world_app.erl
index 1cb15ab..ac86327 100644
--- a/examples/hello_world/src/hello_world_app.erl
+++ b/examples/hello_world/src/hello_world_app.erl
@@ -17,7 +17,7 @@ start(_Type, _Args) ->
]}
],
{ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
- {dispatch, Dispatch}
+ {env, [{dispatch, Dispatch}]}
]),
hello_world_sup:start_link().
diff --git a/examples/rest_hello_world/src/rest_hello_world_app.erl b/examples/rest_hello_world/src/rest_hello_world_app.erl
index 510dbb1..c7f608c 100644
--- a/examples/rest_hello_world/src/rest_hello_world_app.erl
+++ b/examples/rest_hello_world/src/rest_hello_world_app.erl
@@ -17,7 +17,7 @@ start(_Type, _Args) ->
]}
],
{ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
- {dispatch, Dispatch}
+ {env, [{dispatch, Dispatch}]}
]),
rest_hello_world_sup:start_link().
diff --git a/examples/static/src/static_app.erl b/examples/static/src/static_app.erl
index 16ef554..e147db9 100644
--- a/examples/static/src/static_app.erl
+++ b/examples/static/src/static_app.erl
@@ -20,7 +20,7 @@ start(_Type, _Args) ->
]}
],
{ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
- {dispatch, Dispatch}
+ {env, [{dispatch, Dispatch}]}
]),
static_sup:start_link().