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:
parent
6ec20b736e
commit
f05953516b
1 changed files with 1 additions and 0 deletions
|
@ -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},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue