Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #21 from brainopia/master

Fix bug with domain caching for common cookies in production
  • Loading branch information...
commit 6f337267eae0bedb4110879f2aea6b1bb2137980 2 parents 9c1c02a + 5357a16
@rkh rkh authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/rack/contrib/common_cookies.rb
View
6 lib/rack/contrib/common_cookies.rb
@@ -19,10 +19,8 @@ def call(env)
private
def domain
- @domain ||= begin
- @host =~ DOMAIN_REGEXP
- ".#{$1}.#{$2}"
- end
+ @host =~ DOMAIN_REGEXP
+ ".#{$1}.#{$2}"
end
def share_cookie(headers)
Please sign in to comment.
Something went wrong with that request. Please try again.