aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 d363dffca5..4777ebf82a 100644
--- a/lib/net/http/header.rb
+++ b/lib/net/http/header.rb
@@ -75,7 +75,7 @@ module Net::HTTPHeader
append_field_value(ary, val)
@header[key.downcase] = ary
else
- val = val.to_str
+ val = val.to_s
if /[\r\n]/.match?(val)
raise ArgumentError, 'header field value cannnot include CR/LF'
end