From 0995fc99e039ea0b6b2979801c2ab1e0eb05a910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 4 Sep 2017 18:00:56 +0200 Subject: Add a static handler test with an empty file --- test/static_handler_SUITE.erl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') 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), -- cgit v1.2.3