From 2f9ab91cdd1268b4eb793ac4b7cf94ea4ee7a292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 18 May 2018 15:12:31 +0200 Subject: Add more validation of absolute-form request targets --- test/rfc7230_SUITE.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/rfc7230_SUITE.erl') 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" -- cgit v1.2.3