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:
parent
867ca66fab
commit
705fa9755f
1 changed files with 6 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue