From bc6860db23b0df3bce09378605a618b677dd6d89 Mon Sep 17 00:00:00 2001 From: Brandon Weaver Date: Fri, 19 May 2023 15:06:44 -0700 Subject: [PATCH] [ruby/net-http] Update lib/net/http/header.rb https://github.com/ruby/net-http/commit/826e008cfe Co-authored-by: Jean Boussier --- lib/net/http/header.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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