aboutsummaryrefslogtreecommitdiffstats
path: root/examples/eventsource/src/eventsource_app.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-09-08 11:48:48 +0200
committerLoïc Hoguin <[email protected]>2013-09-08 11:48:48 +0200
commit49acfce8b9d0af8cc87b9be7ba91ffde307596da (patch)
treec7727f3f520b3d66401951004d9d4eac575f5380 /examples/eventsource/src/eventsource_app.erl
parent6b7b0efd24149d81df47b3241a989a6777bb486b (diff)
downloadcowboy-49acfce8b9d0af8cc87b9be7ba91ffde307596da.tar.gz
cowboy-49acfce8b9d0af8cc87b9be7ba91ffde307596da.tar.bz2
cowboy-49acfce8b9d0af8cc87b9be7ba91ffde307596da.zip
Convert the EventSource example to a release
Diffstat (limited to 'examples/eventsource/src/eventsource_app.erl')
-rw-r--r--examples/eventsource/src/eventsource_app.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/eventsource/src/eventsource_app.erl b/examples/eventsource/src/eventsource_app.erl
index d002676..4f5594b 100644
--- a/examples/eventsource/src/eventsource_app.erl
+++ b/examples/eventsource/src/eventsource_app.erl
@@ -17,7 +17,7 @@ start(_Type, _Args) ->
{"/", cowboy_static, [
{directory, {priv_dir, eventsource, []}},
{file, <<"index.html">>},
- {mimetypes, {fun mimetypes:path_to_mimes/2, default}}
+ {mimetypes, [{<<".html">>, [<<"text/html">>]}]}
]}
]}
]),