I've been testing out 2.3.1, and I've noticed this weird bug I'm kind of stumped about. Of course I've been using script/server locally, but I've noticed that a Set-Cookie header keeps appearing at the very top of the response body, above the HTML and everything. It seems to happen whenever there are multiple cookies being set -- I ran a request through Live HTTP Headers and it looks like a Set-Cookie header is properly sent for the first cookie but if there are any other cookies, they come through above the response body as I mentioned.
I know someone's encountered this before, because I found #195 in Lighthouse[1], but the fix that Josh made [2] doesn't seem to have helped here -- I think because he fixed the deprecated FCGI handler, but not necessarily Mongrel or anything like that. I can confirm that when using Thin instead of Mongrel, the rogue headers no longer show up in the response body.
The thing is, I haven't seen talk about this problem other than in Lighthouse. So what I'm wondering now is if this is a problem with Mongrel, or with Rack's Mongrel handler, or with Rails...? Anybody got any ideas?
-- Elliot
[1]: #1957 Sessions break in 2.3 with Mongrel - Ruby on Rails - rails [2]: Special case in deprecated CGI proxy layer for Mongrel CGI cookies [#… · rails/rails@b6e56ef · GitHub