mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 12:40:25 +00:00
Add UTF-8 support to example file_server
LH: I have fixed issues in the PR and incorporated changes from a sister PR by @djankovic (git author: Dom J). I also made sure the UTF-8 files were readable without Chinese fonts and added their downloading to the examples test suite.
This commit is contained in:
parent
32594a5199
commit
4f26d6a573
4 changed files with 20 additions and 4 deletions
|
@ -15,7 +15,8 @@ start(_Type, _Args) ->
|
|||
{'_', [
|
||||
{"/[...]", cowboy_static, {priv_dir, file_server, "", [
|
||||
{mimetypes, cow_mimetypes, all},
|
||||
{dir_handler, directory_h}
|
||||
{dir_handler, directory_h},
|
||||
{charset, <<"utf-8">>}
|
||||
]}}
|
||||
]}
|
||||
]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue