Closed
Description
Originally opened as dart-lang/sdk#21802
This issue was originally filed by jirkad...@gmail.com
Package http represents request headers as a Map<string, string>, both in requests as well as in responses. That does not work for repeating headers, In that case one needs to fold them into a single string. Which is not always practical or possible.
What steps will reproduce the problem?
The most problematic header is Set-Cookie since the concatenation of multiple cookies into one string is tricky to parse.
Please provide any additional information below.
Some browsers and libraries e.g. http.cookies in Python can deal with folded Set-Cookie headers.
RFC 6265 says "don't do that" (section 3)