Skip to content

Commit

Permalink
Update lib/net/http/header.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
  • Loading branch information
2 people authored and hsbt committed May 30, 2024
1 parent 15f1349 commit 826e008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/net/http/header.rb
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def each_capitalized
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

Expand Down

0 comments on commit 826e008

Please sign in to comment.