Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

Commit

Permalink
If domain is not set, do not force as empty string. Breaks IE.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Dreckshage committed Sep 17, 2015
1 parent 6ef15bb commit 20f0d1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cacheable_flash/middleware.rb
Expand Up @@ -16,7 +16,7 @@ def call(env)
if env_flash
domain = CacheableFlash::Config.config[:domain]
cookies = Rack::Request.new(env).cookies
Rack::Utils.set_cookie_header!(headers, "flash", :value => cookie_flash(env_flash, cookies), :path => "/", :domain => "#{domain}")
Rack::Utils.set_cookie_header!(headers, "flash", :value => cookie_flash(env_flash, cookies), :path => "/", :domain => domain)
end

[status, headers, body]
Expand Down

0 comments on commit 20f0d1d

Please sign in to comment.