diff options
author | Loïc Hoguin <[email protected]> | 2018-05-18 15:12:31 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-05-18 15:12:31 +0200 |
commit | 2f9ab91cdd1268b4eb793ac4b7cf94ea4ee7a292 (patch) | |
tree | f3b89b1701035b4a6977aafd4421a4d56e946e06 /test/rfc7230_SUITE.erl | |
parent | 5cb244eb7a1f2ad8654fdb7095a3bca235712cfd (diff) | |
download | cowboy-2f9ab91cdd1268b4eb793ac4b7cf94ea4ee7a292.tar.gz cowboy-2f9ab91cdd1268b4eb793ac4b7cf94ea4ee7a292.tar.bz2 cowboy-2f9ab91cdd1268b4eb793ac4b7cf94ea4ee7a292.zip |
Add more validation of absolute-form request targets
Diffstat (limited to 'test/rfc7230_SUITE.erl')
-rw-r--r-- | test/rfc7230_SUITE.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/rfc7230_SUITE.erl b/test/rfc7230_SUITE.erl index e8f2df8..2705077 100644 --- a/test/rfc7230_SUITE.erl +++ b/test/rfc7230_SUITE.erl @@ -375,7 +375,7 @@ absolute_form_case_insensitive_host(Config) -> Echo = <<"http://localhost/echo/uri">>, #{code := 200, body := Echo} = do_raw(Config, "GET http://LoCaLHOsT/echo/uri HTTP/1.1\r\n" - "Host: localhost\r\n" + "Host: LoCaLHOsT\r\n" "\r\n"). absolute_form_reject_unknown_schemes(Config) -> @@ -492,7 +492,8 @@ absolute_form_invalid_port_0(Config) -> {error, closed} = raw_recv(Client, 0, 1000). absolute_form_invalid_port_65536(Config) -> - doc("Port numbers above 65535 are invalid. The request must be rejected and the connection closed."), + doc("Port numbers above 65535 are invalid. The request must be rejected " + "and the connection closed."), #{code := 400, client := Client} = do_raw(Config, "GET http://localhost:65536/ HTTP/1.1\r\n" "Host: localhost:65536\r\n" |