diff options
author | Loïc Hoguin <[email protected]> | 2019-03-26 15:36:54 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-04-01 15:04:33 +0200 |
commit | 705fa9755fb683673c9fd089a22f25163cb8e520 (patch) | |
tree | 7bca1c4b4232735197424b63569e2fd8132a700d /test | |
parent | 867ca66fab650c9ea5d62a7f5dceaa83e2b6aa0d (diff) | |
download | cowboy-705fa9755fb683673c9fd089a22f25163cb8e520.tar.gz cowboy-705fa9755fb683673c9fd089a22f25163cb8e520.tar.bz2 cowboy-705fa9755fb683673c9fd089a22f25163cb8e520.zip |
Add a cowboy_static test with an uppercase filename/extension
Diffstat (limited to 'test')
-rw-r--r-- | test/static_handler_SUITE.erl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/static_handler_SUITE.erl b/test/static_handler_SUITE.erl index eaa915a..8c0812e 100644 --- a/test/static_handler_SUITE.erl +++ b/test/static_handler_SUITE.erl @@ -786,6 +786,12 @@ mime_all_txt(Config) -> {_, <<"text/plain">>} = lists:keyfind(<<"content-type">>, 1, Headers), ok. +mime_all_uppercase(Config) -> + doc("Get an uppercase .TXT file."), + {200, Headers, _} = do_get("/mime/all/UPPER.TXT", Config), + {_, <<"text/plain">>} = lists:keyfind(<<"content-type">>, 1, Headers), + ok. + mime_crash(Config) -> doc("Get a file with a crashing mimetype function."), {500, _, _} = do_get("/mime/crash/style.css", Config), |