aboutsummaryrefslogtreecommitdiffstats
path: root/test/http_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-12-22 16:45:04 +0100
committerLoïc Hoguin <[email protected]>2012-12-22 16:45:04 +0100
commit7ff2a62585258e65830e80d5ac0abb75b9c1cf0b (patch)
tree653fe665b2919b2a86a6eb905c0c05f9498da606 /test/http_SUITE.erl
parentcc65a723d70bb078b048bab81eeb8a4bd7ed39ce (diff)
downloadcowboy-7ff2a62585258e65830e80d5ac0abb75b9c1cf0b.tar.gz
cowboy-7ff2a62585258e65830e80d5ac0abb75b9c1cf0b.tar.bz2
cowboy-7ff2a62585258e65830e80d5ac0abb75b9c1cf0b.zip
Make sure an incorrect port returns a 400 error
Diffstat (limited to 'test/http_SUITE.erl')
-rw-r--r--test/http_SUITE.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/http_SUITE.erl b/test/http_SUITE.erl
index dfb9496..c90e585 100644
--- a/test/http_SUITE.erl
+++ b/test/http_SUITE.erl
@@ -366,6 +366,7 @@ The document has moved
{400, "\r\n\r\n\r\n\r\n\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"},
{505, ResponsePacket},
{408, "GET / HTTP/1.1\r\n"},
{408, "GET / HTTP/1.1\r\nHost: localhost"},