| 1 | import net.http |
| 2 | |
| 3 | const 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 | |