From 705fa9755fb683673c9fd089a22f25163cb8e520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 26 Mar 2019 15:36:54 +0100 Subject: Add a cowboy_static test with an uppercase filename/extension --- test/static_handler_SUITE.erl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/static_handler_SUITE.erl') 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), -- cgit v1.2.3