Browse Source

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

Loïc Hoguin 14 years ago
parent
commit
f05953516b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      test/http_SUITE.erl

+ 1 - 0
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},