> Ops, doh, I didn't notice the octal.
> So the problem I'm having is a line break in the Set-Cookie header. I think
> that happened because I have two cookies being defined, which results in two
> Set-Cookie headers to the client.
> This is the flow that is generating the problem: Rails stores the cookies in
> the header 'cookie' as one array. Then Rack::Adapter::Rails converts this
> header into the Set-Cookie header, joining the elements with a line break. This
> string representation of the cookies will be later converted to multiple
> Set-Cookie headers by the handler, but _before_ this happens it is processed by
> Lint, which detects the line break and fail.
> I think the solution is to change Rack::Adapter::Rails to store the headers in
> hash-like structure that supports duplicate keys. What you think?
"Set-Cookie" => [cookie1.to_s, cookie2.to_s] works in current Rack.
In future Racks (for 1.9 support, not yet fully specified), the
newline is the correct way.