mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-16 05:00:24 +00:00
Limit the number of empty lines to allow before the request-line.
Defaults to 5. Prevents someone from indefinitely sending empty lines.
This commit is contained in:
parent
c79df567be
commit
6ec20b736e
2 changed files with 10 additions and 3 deletions
|
@ -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},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue