Stop Rails from sending empty Set-Cookie headers if no cookies are set
authorMarius Mathiesen <marius@gitorious.org>
Thu, 4 Oct 2012 09:02:47 +0000 (11:02 +0200)
committerMarius Mathiesen <marius@gitorious.org>
Thu, 4 Oct 2012 09:02:47 +0000 (11:02 +0200)
commitfe23d60f6c4be3758e9723f7560aa4c7c2dc5399
treefb7fd60b381ac65a80175fe508ad706606c29972
parentad94b35c86e58cab49dc1c9b1b86a619e9bb6161
Stop Rails from sending empty Set-Cookie headers if no cookies are set

This behaviour was dealt with by Passenger, Thin etc., but not when
running under Unicorn. This makes Gitorious support caching when running under Unicorn.

Manually backported from
https://rails.lighthouseapp.com/projects/8994/tickets/3811-empty-set-cookie-header
vendor/rails/actionpack/lib/action_controller/response.rb