Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
little nicer code
Browse files Browse the repository at this point in the history
  • Loading branch information
mkristian committed Feb 21, 2014
1 parent 390751c commit 8e8d60f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/protection/content_security_policy.rb
Expand Up @@ -51,7 +51,7 @@ class ContentSecurityPolicy < Base
def collect_options
KEYS.collect do |k|
"#{k.to_s.sub(/_/, '-')} #{options[k]}" if options.key?(k)
end.select{ |i| i }.join('; ')
end.compact.join('; ')
end

def call(env)
Expand Down

0 comments on commit 8e8d60f

Please sign in to comment.