diff options
| author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-02-04 11:47:56 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-04 11:47:56 +1300 |
| commit | b8f918e020e91858b6b3cc70e710aa8cd4b25449 (patch) | |
| tree | 1d72ef15a7614ef1009c560cff3037a5b83457cc | |
| parent | 4a930f2e84ffd523140c0aa5214e4720035f15eb (diff) | |
| download | rack-b8f918e020e91858b6b3cc70e710aa8cd4b25449.tar.gz | |
Add brackets around parameters.
Co-Authored-By: Rafael França <rafael@franca.dev>
| -rw-r--r-- | lib/rack/utils.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/utils.rb b/lib/rack/utils.rb index 58d274af..e1a44686 100644 --- a/lib/rack/utils.rb +++ b/lib/rack/utils.rb @@ -405,7 +405,7 @@ module Rack # # @api private class HeaderHash < Hash # :nodoc: - def self.[] headers + def self.[](headers) if headers.is_a?(HeaderHash) return headers else |
