0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

ct: Add a test for \n which throws an error 400.

This commit is contained in:
Loïc Hoguin 2011-04-09 15:45:25 +02:00
parent 6ec20b736e
commit f05953516b

View file

@ -97,6 +97,7 @@ raw_req(Packet, Config) ->
raw(Config) -> raw(Config) ->
Tests = [ Tests = [
{"\r\n\r\n\r\n\r\n\r\nGET / HTTP/1.1\r\nHost: localhost\r\n\r\n", 200}, {"\r\n\r\n\r\n\r\n\r\nGET / HTTP/1.1\r\nHost: localhost\r\n\r\n", 200},
{"\n", 400},
{"Garbage\r\n\r\n", 400}, {"Garbage\r\n\r\n", 400},
{"\r\n\r\n\r\n\r\n\r\n\r\n", 400}, {"\r\n\r\n\r\n\r\n\r\n\r\n", 400},
{"GET / HTTP/1.1\r\nHost: dev-extend.eu\r\n\r\n", 400}, {"GET / HTTP/1.1\r\nHost: dev-extend.eu\r\n\r\n", 400},