diff options
author | Loïc Hoguin <[email protected]> | 2017-10-31 15:41:25 +0000 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-10-31 15:41:25 +0000 |
commit | fb13e5c9e9dcdb73e2f12d50ccc827c6f395df00 (patch) | |
tree | 6b5c2878a74b1b335d53aa89150867cef90c13e4 /test/static_handler_SUITE.erl | |
parent | a97640d56dcb1a32ea44cb3be6575d2a4d6136c9 (diff) | |
download | cowboy-fb13e5c9e9dcdb73e2f12d50ccc827c6f395df00.tar.gz cowboy-fb13e5c9e9dcdb73e2f12d50ccc827c6f395df00.tar.bz2 cowboy-fb13e5c9e9dcdb73e2f12d50ccc827c6f395df00.zip |
Fix the static_handler test suite
Bad requests correctly return 400, not 500.
Diffstat (limited to 'test/static_handler_SUITE.erl')
-rw-r--r-- | test/static_handler_SUITE.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/static_handler_SUITE.erl b/test/static_handler_SUITE.erl index 9b1637b..726d035 100644 --- a/test/static_handler_SUITE.erl +++ b/test/static_handler_SUITE.erl @@ -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" |