0
Fork 0
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:
Loïc Hoguin 2017-10-31 15:41:25 +00:00
parent a97640d56d
commit fb13e5c9e9
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -797,7 +797,7 @@ unicode_basic_error(Config) ->
http2 -> "#?" http2 -> "#?"
end, end,
_ = [case do_get("/char/" ++ [C], Config) of _ = [case do_get("/char/" ++ [C], Config) of
{500, _, _} -> ok; {400, _, _} -> ok;
Error -> exit({error, C, Error}) Error -> exit({error, C, Error})
end || C <- (config(chars, Config) -- Exclude) -- end || C <- (config(chars, Config) -- Exclude) --
"abcdefghijklmnopqrstuvwxyz" "abcdefghijklmnopqrstuvwxyz"