Browse Source

Fix the req_SUITE:parse_cookie test

We now allow spaces in cookie names.
Loïc Hoguin 5 years ago
parent
commit
bcef70818b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/req_SUITE.erl

+ 1 - 1
test/req_SUITE.erl

@@ -281,7 +281,7 @@ parse_cookies(Config) ->
 			[{<<"cookie">>, "cake=strawberry"}, {<<"cookie">>, "color=blue"}], Config),
 			[{<<"cookie">>, "cake=strawberry"}, {<<"cookie">>, "color=blue"}], Config),
 	%% Ensure parse errors result in a 400 response.
 	%% Ensure parse errors result in a 400 response.
 	{400, _, _} = do_get("/parse_cookies",
 	{400, _, _} = do_get("/parse_cookies",
-		[{<<"cookie">>, "bad name=strawberry"}], Config),
+		[{<<"cookie">>, "bad\tname=strawberry"}], Config),
 	{400, _, _} = do_get("/parse_cookies",
 	{400, _, _} = do_get("/parse_cookies",
 		[{<<"cookie">>, "goodname=strawberry\tmilkshake"}], Config),
 		[{<<"cookie">>, "goodname=strawberry\tmilkshake"}], Config),
 	ok.
 	ok.