Skip to content

Commit

Permalink
Merge pull request #24 from natacado/master
Browse files Browse the repository at this point in the history
Fix Rails 2.3.x projects for (for real this time)
  • Loading branch information
thibaudgg committed May 13, 2011
2 parents 347021e + 8c2cc5d commit 579a600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/ssl-enforcer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def port_for(scheme)
def flag_cookies_as_secure!(headers)
if cookies = headers['Set-Cookie']
# Support Rails 2.3 / Rack 1.1 arrays as headers
if cookies.respond_to?(:split)
unless cookies.is_a?(Array)
cookies = cookies.split("\n")
end

Expand Down

0 comments on commit 579a600

Please sign in to comment.