0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 04:10:24 +00:00

Fix the req_SUITE:parse_cookie test

We now allow spaces in cookie names.
This commit is contained in:
Loïc Hoguin 2020-03-30 17:46:42 +02:00
parent 0fc33c5300
commit bcef70818b
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

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