diff options
| author | Brandon Weaver <baweaver@users.noreply.github.com> | 2023-05-19 15:06:44 -0700 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-05-30 09:16:15 +0000 |
| commit | bc6860db23b0df3bce09378605a618b677dd6d89 (patch) | |
| tree | 57a4e36d7bd82776255e2d12b5e06e88fd168c09 /lib | |
| parent | 4839493f3f3419ee2be88b6160d9c3c71fbd02e2 (diff) | |
[ruby/net-http] Update lib/net/http/header.rb
https://github.com/ruby/net-http/commit/826e008cfe
Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/net/http/header.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http/header.rb b/lib/net/http/header.rb index 14f6cda988..f6c36f1b5e 100644 --- a/lib/net/http/header.rb +++ b/lib/net/http/header.rb @@ -491,7 +491,7 @@ module Net::HTTPHeader alias canonical_each each_capitalized def capitalize(name) - name.to_s.split('-').map {|s| s.capitalize }.join('-') + name.to_s.split('-'.freeze).map {|s| s.capitalize }.join('-'.freeze) end private :capitalize |
