diff options
author | Loïc Hoguin <[email protected]> | 2013-09-08 11:48:48 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-09-08 11:48:48 +0200 |
commit | 49acfce8b9d0af8cc87b9be7ba91ffde307596da (patch) | |
tree | c7727f3f520b3d66401951004d9d4eac575f5380 /examples/eventsource/src/eventsource_app.erl | |
parent | 6b7b0efd24149d81df47b3241a989a6777bb486b (diff) | |
download | cowboy-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.erl | 2 |
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">>]}]} ]} ]} ]), |