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 <[email protected]>
  • Loading branch information
baweaver and byroot authored May 19, 2023
1 parent 85dd4fd commit 96e5305
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 96e5305

Please sign in to comment.