Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle frozen hashes #223

Merged
merged 2 commits into from
Feb 29, 2016
Merged

Handle frozen hashes #223

merged 2 commits into from
Feb 29, 2016

Conversation

oreoshake
Copy link
Contributor

Previously, this would cause an exception:

RuntimeError:
  can't modify frozen Hash
 # ./lib/secure_headers/headers/content_security_policy.rb:216:in `block in combine_policies'
 # ./lib/secure_headers/headers/content_security_policy.rb:214:in `each'
 # ./lib/secure_headers/headers/content_security_policy.rb:214:in `combine_policies'
 # ./spec/lib/secure_headers/headers/content_security_policy_spec.rb:127:in `block (3 levels) in <module:SecureHeaders>'

Previously, this would cause an exception:

RuntimeError:
  can't modify frozen Hash
 ./lib/secure_headers/headers/content_security_policy.rb:216:in `block in combine_policies'
 ./lib/secure_headers/headers/content_security_policy.rb:214:in `each'
 ./lib/secure_headers/headers/content_security_policy.rb:214:in `combine_policies'
 ./spec/lib/secure_headers/headers/content_security_policy_spec.rb:127:in `block (3 levels) in <module:SecureHeaders>'
oreoshake added a commit that referenced this pull request Feb 29, 2016
@oreoshake oreoshake merged commit 2cb0fba into master Feb 29, 2016
@oreoshake oreoshake deleted the handle-frozen-hashes branch February 29, 2016 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant