Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oreoshake committed Sep 23, 2015
1 parent c0983ea commit 9ea8252
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/secure_headers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ def secure_header_options_for(type, options)
end

def set_a_header(name, klass, options=nil)
set_header(SecureHeaders::get_a_header(name, klass, secure_header_options_for(name, options)))
options = secure_header_options_for(name, options)
return if options == false
set_header(SecureHeaders::get_a_header(name, klass, options))
end

def set_header(name_or_header, value=nil)
Expand Down

0 comments on commit 9ea8252

Please sign in to comment.