diff options
author | Loïc Hoguin <[email protected]> | 2017-09-04 18:00:56 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-09-04 18:00:56 +0200 |
commit | 0995fc99e039ea0b6b2979801c2ab1e0eb05a910 (patch) | |
tree | a3f4017420b75aaf2bcc4a5093e78b9629485bc0 /test/static_handler_SUITE.erl | |
parent | 0828e0b9ced1ae72c2d58cefe3a00ef5d3370670 (diff) | |
download | cowboy-0995fc99e039ea0b6b2979801c2ab1e0eb05a910.tar.gz cowboy-0995fc99e039ea0b6b2979801c2ab1e0eb05a910.tar.bz2 cowboy-0995fc99e039ea0b6b2979801c2ab1e0eb05a910.zip |
Add a static handler test with an empty file
Diffstat (limited to 'test/static_handler_SUITE.erl')
-rw-r--r-- | test/static_handler_SUITE.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/static_handler_SUITE.erl b/test/static_handler_SUITE.erl index 26b7140..9b1637b 100644 --- a/test/static_handler_SUITE.erl +++ b/test/static_handler_SUITE.erl @@ -337,6 +337,11 @@ dir_dotdot_file(Config) -> {404, _, _} = do_get(config(prefix, Config) ++ "/directory/../../static/style.css", Config), ok. +dir_empty_file(Config) -> + doc("Get an empty .txt file."), + {200, Headers, <<>>} = do_get(config(prefix, Config) ++ "/empty.txt", Config), + ok. + dir_error_directory(Config) -> doc("Try to get a directory."), {403, _, _} = do_get(config(prefix, Config) ++ "/directory", Config), |