diff options
author | Loïc Hoguin <[email protected]> | 2011-04-09 15:28:41 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-04-09 15:28:41 +0200 |
commit | 6ec20b736ea0a8e8a2a216457273e4dd00b2f1d2 (patch) | |
tree | 2094288d1d69702ddd944aa73b96c9e36778cb25 /test | |
parent | c79df567bec9187f6ad27e4c6f4049dad730f0f2 (diff) | |
download | cowboy-6ec20b736ea0a8e8a2a216457273e4dd00b2f1d2.tar.gz cowboy-6ec20b736ea0a8e8a2a216457273e4dd00b2f1d2.tar.bz2 cowboy-6ec20b736ea0a8e8a2a216457273e4dd00b2f1d2.zip |
Limit the number of empty lines to allow before the request-line.
Defaults to 5. Prevents someone from indefinitely sending empty lines.
Diffstat (limited to 'test')
-rw-r--r-- | test/http_SUITE.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/http_SUITE.erl b/test/http_SUITE.erl index 1bcdcc6..1d2ebb0 100644 --- a/test/http_SUITE.erl +++ b/test/http_SUITE.erl @@ -98,6 +98,7 @@ raw(Config) -> Tests = [ {"\r\n\r\n\r\n\r\n\r\nGET / HTTP/1.1\r\nHost: localhost\r\n\r\n", 200}, {"Garbage\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}, {"", 408}, {"\r\n", 408}, |