rack-ssl 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/rack/ssl.rb +1 -1
  2. metadata +4 -4
@@ -70,7 +70,7 @@ module Rack
70
70
  def flag_cookies_as_secure!(headers)
71
71
  if cookies = headers['Set-Cookie']
72
72
  headers['Set-Cookie'] = cookies.split("\n").map { |cookie|
73
- if cookie !~ / secure;/
73
+ if cookie !~ /; secure(;|$)/
74
74
  "#{cookie}; secure"
75
75
  else
76
76
  cookie
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-ssl
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 0
10
- version: 1.3.0
9
+ - 1
10
+ version: 1.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joshua Peek
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  requirements: []
75
75
 
76
76
  rubyforge_project: rack-ssl
77
- rubygems_version: 1.4.1
77
+ rubygems_version: 1.5.3
78
78
  signing_key:
79
79
  specification_version: 3
80
80
  summary: Force SSL/TLS in your app.