Skip to content

Commit

Permalink
re-remove nonce_added?
Browse files Browse the repository at this point in the history
  • Loading branch information
oreoshake committed May 8, 2017
1 parent db2bd21 commit 79f6438
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/secure_headers/headers/policy_management.rb
Expand Up @@ -289,14 +289,6 @@ def default_for(directive, original)
original[DEFAULT_SRC]
end

def nonce_added?(original, additions)
[:script_nonce, :style_nonce].each do |nonce|
if additions[nonce] && !original[nonce]
return true
end
end
end

def source_list?(directive)
DIRECTIVE_VALUE_TYPES[directive] == :source_list
end
Expand Down

0 comments on commit 79f6438

Please sign in to comment.