summaryrefslogtreecommitdiff
path: root/lib/net/http/header.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/http/header.rb')
-rw-r--r--lib/net/http/header.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http/header.rb b/lib/net/http/header.rb
index 912419d..8afa32a 100644
--- a/lib/net/http/header.rb
+++ b/lib/net/http/header.rb
@@ -169,7 +169,7 @@ module Net::HTTPHeader
alias canonical_each each_capitalized
def capitalize(name)
- name.split(/-/).map {|s| s.capitalize }.join('-')
+ name.to_s.split(/-/).map {|s| s.capitalize }.join('-')
end
private :capitalize