0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Add a cowboy_static test with an uppercase filename/extension

This commit is contained in:
Loïc Hoguin 2019-03-26 15:36:54 +01:00
parent 867ca66fab
commit 705fa9755f
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -786,6 +786,12 @@ mime_all_txt(Config) ->
{_, <<"text/plain">>} = lists:keyfind(<<"content-type">>, 1, Headers), {_, <<"text/plain">>} = lists:keyfind(<<"content-type">>, 1, Headers),
ok. 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) -> mime_crash(Config) ->
doc("Get a file with a crashing mimetype function."), doc("Get a file with a crashing mimetype function."),
{500, _, _} = do_get("/mime/crash/style.css", Config), {500, _, _} = do_get("/mime/crash/style.css", Config),