v2 / vlib / v / fmt / tests / array_init_comment_ending_keep.vv
19 lines · 18 sloc · 564 bytes · acf6b344f733169ec6ecc9881f8a8c2c795b9883
Raw
1import net.http
2
3const write_set_cookie_tests = [
4 ReadSetCookiesTestCase{
5 header: {
6 'Set-Cookie': ['special-7=","']
7 }
8 cookies: [&http.Cookie{
9 name: 'special-7'
10 value: ','
11 raw: 'special-8=","'
12 }]
13 },
14 // (bradfitz): users have reported seeing this in the
15 // wild, but do browsers handle it? RFC 6265 just says "don't
16 // do that" (section 3) and then never mentions header folding
17 // again.
18 // Header{"Set-Cookie": ["ASP.NET_SessionId=foo; path=/; HttpOnly, .ASPXAUTH=7E3AA; expires=Wed, 07-Mar-2012 14:25:06 GMT; path=/; HttpOnly"]},
19]
20