diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2013-06-24 18:01:30 +0900 |
---|---|---|
committer | Yamagishi Kazutoshi <ykzts@desire.sh> | 2013-06-24 18:01:30 +0900 |
commit | 891fd78cd7664cefd68fa099796614668d52cafe (patch) | |
tree | 4152a430b607b21782532da6b176b3195df9e1a7 /actionpack/lib/action_dispatch | |
parent | f6cdc2282ff4a34e4d0230b80d945f9c898d6973 (diff) | |
download | rails-891fd78cd7664cefd68fa099796614668d52cafe.tar.gz rails-891fd78cd7664cefd68fa099796614668d52cafe.tar.bz2 rails-891fd78cd7664cefd68fa099796614668d52cafe.zip |
Flag cookies as secure with ignore case in ActionDispatch::SSL
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/ssl.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/ssl.rb b/actionpack/lib/action_dispatch/middleware/ssl.rb index 9e03cbf2b7..a693ce3d23 100644 --- a/actionpack/lib/action_dispatch/middleware/ssl.rb +++ b/actionpack/lib/action_dispatch/middleware/ssl.rb @@ -58,7 +58,7 @@ module ActionDispatch cookies = cookies.split("\n") headers['Set-Cookie'] = cookies.map { |cookie| - if cookie !~ /;\s+secure(;|$)/ + if cookie !~ /;\s+secure(;|$)/i "#{cookie}; secure" else cookie |