diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-03-21 19:29:44 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-03-21 19:29:44 -0700 |
commit | 771ee626338c8fa00f8eedda9bdfbbddb5206491 (patch) | |
tree | 841000a8732a416e790b755c81e5085426969fb7 /lib/unicorn/const.rb | |
parent | 9a59450a8f8cb415fa11ddbf5bf375c9cb7829d3 (diff) | |
download | unicorn-771ee626338c8fa00f8eedda9bdfbbddb5206491.tar.gz |
Rack uses a single newline character to represent multi-value headers. Thus { 'Set-Cookie' => "foo=bar\nbar=foo" } will get you: Set-Cookie: foo=bar Set-Cookie: bar=foo While RFC2616 says you can combine headers as: Set-Cookie: foo=bar,bar=foo There are probably HTTP clients out there that don't handle things correctly so don't bother... Additionally, don't bother doing duplicate suppression anymore. Just assume Rack or a higher layer knows what it's doing regarding duplicates and we'll get a Hash most of the time anyways.
Diffstat (limited to 'lib/unicorn/const.rb')
0 files changed, 0 insertions, 0 deletions