aboutsummaryrefslogtreecommitdiffstats
path: root/test/http_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-10-03 17:19:04 +0300
committerLoïc Hoguin <[email protected]>2014-10-03 17:19:04 +0300
commit403895a6412001e30a09010d33e4c266bdb4fd09 (patch)
treebb4f579a04fe8645566e22c79ea9e3b04059c38a /test/http_SUITE.erl
parent18f50b869702c731324a3c47381ab1e0f3abb7f0 (diff)
downloadcowboy-403895a6412001e30a09010d33e4c266bdb4fd09.tar.gz
cowboy-403895a6412001e30a09010d33e4c266bdb4fd09.tar.bz2
cowboy-403895a6412001e30a09010d33e4c266bdb4fd09.zip
Fix two edge cases when the request-line provided is invalid
Diffstat (limited to 'test/http_SUITE.erl')
-rw-r--r--test/http_SUITE.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/http_SUITE.erl b/test/http_SUITE.erl
index 3783b6e..bd0f247 100644
--- a/test/http_SUITE.erl
+++ b/test/http_SUITE.erl
@@ -256,6 +256,8 @@ The document has moved
{400, "\n"},
{400, "Garbage\r\n\r\n"},
{400, "\r\n\r\n\r\n\r\n\r\n\r\n"},
+ {400, " / HTTP/1.1\r\nHost: localhost\r\n\r\n"},
+ {400, "GET HTTP/1.1\r\nHost: localhost\r\n\r\n"},
{400, "GET / HTTP/1.1\r\nHost: ninenines.eu\r\n\r\n"},
{400, "GET http://proxy/ HTTP/1.1\r\n\r\n"},
{400, "GET / HTTP/1.1\r\nHost: localhost:bad_port\r\n\r\n"},