mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
Use tr
instead of gsub
This commit is contained in:
parent
5548212f47
commit
49f21894d3
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ module Rack
|
|||
# Set these key values to boolean 'true' to include in policy
|
||||
NO_ARG_DIRECTIVES.each do |d|
|
||||
if options.key?(d) && options[d].is_a?(TrueClass)
|
||||
directives << d.to_s.gsub(/_/, '-')
|
||||
directives << d.to_s.tr('_', '-')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue