mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Fix the static_handler test suite
Bad requests correctly return 400, not 500.
This commit is contained in:
parent
a97640d56d
commit
fb13e5c9e9
1 changed files with 1 additions and 1 deletions
|
@ -797,7 +797,7 @@ unicode_basic_error(Config) ->
|
|||
http2 -> "#?"
|
||||
end,
|
||||
_ = [case do_get("/char/" ++ [C], Config) of
|
||||
{500, _, _} -> ok;
|
||||
{400, _, _} -> ok;
|
||||
Error -> exit({error, C, Error})
|
||||
end || C <- (config(chars, Config) -- Exclude) --
|
||||
"abcdefghijklmnopqrstuvwxyz"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue