diff options
author | Loïc Hoguin <[email protected]> | 2011-04-09 15:45:25 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-04-09 15:45:25 +0200 |
commit | f05953516be489e8b4159f29e2db6b7920a2b45f (patch) | |
tree | 1b61586228bc7be76024a10e299f6eeccb3b5658 /test/http_SUITE.erl | |
parent | 6ec20b736ea0a8e8a2a216457273e4dd00b2f1d2 (diff) | |
download | cowboy-f05953516be489e8b4159f29e2db6b7920a2b45f.tar.gz cowboy-f05953516be489e8b4159f29e2db6b7920a2b45f.tar.bz2 cowboy-f05953516be489e8b4159f29e2db6b7920a2b45f.zip |
ct: Add a test for \n which throws an error 400.
Diffstat (limited to 'test/http_SUITE.erl')
-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 1d2ebb0..628c6c9 100644 --- a/test/http_SUITE.erl +++ b/test/http_SUITE.erl @@ -97,6 +97,7 @@ raw_req(Packet, Config) -> raw(Config) -> Tests = [ {"\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}, {"\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}, |