Skip to content

Commit cd56394

Browse files
committed
bump to 3.1.1
1 parent 6399816 commit cd56394

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 3.1.1 Bug fix for regression
2+
3+
See https://github.com/twitter/secureheaders/pull/235
4+
5+
`idempotent_additions?` would return false when comparing `OPT_OUT` with `OPT_OUT`, causing `header_hash_for` to return a header cache with `{ nil => nil }` which cause the middleware to blow up when `{ nil => nil }` was merged into the rack header hash.
6+
7+
This is a regression in 3.1.0 only.
8+
9+
Now it returns true. I've added a test case to ensure that `header_hash_for` will never return such an element.
10+
111
## 3.1.0 Adding secure cookie support
212

313
New feature: marking all cookies as secure. Added by @jmera in https://github.com/twitter/secureheaders/pull/231. In the future, we'll probably add the ability to whitelist individual cookies that should not be marked secure. PRs welcome.

secure_headers.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- encoding: utf-8 -*-
22
Gem::Specification.new do |gem|
33
gem.name = "secure_headers"
4-
gem.version = "3.1.0"
4+
gem.version = "3.1.1"
55
gem.authors = ["Neil Matatall"]
66
gem.email = ["[email protected]"]
77
gem.description = 'Security related headers all in one gem.'

0 commit comments

Comments
 (0)