Skip to content

Commit

Permalink
Merge branch 'dbmercer-patch-1' of git://github.com/dbmercer/cowboy.git
Browse files Browse the repository at this point in the history
  • Loading branch information
essen committed Oct 11, 2012
2 parents 642a8f7 + b5fdf02 commit 7b3d994
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion examples/static/rebar.config
@@ -1,4 +1,6 @@
{deps, [
{cowboy, ".*",
{git, "git://github.com/extend/cowboy.git", "master"}}
{git, "git://github.com/extend/cowboy.git", "master"}},
{mimetypes, ".*",
{git, "git://github.com/spawngrid/mimetypes.git", "master"}}
]}.
3 changes: 2 additions & 1 deletion examples/static/src/static_app.erl
Expand Up @@ -14,7 +14,8 @@ start(_Type, _Args) ->
Dispatch = [
{'_', [
{['...'], cowboy_static, [
{directory, {priv_dir, static, []}}
{directory, {priv_dir, static, []}},
{mimetypes, {fun mimetypes:path_to_mimes/2, default}}
]}
]}
],
Expand Down

0 comments on commit 7b3d994

Please sign in to comment.