[ruby/net-http] typofix

https://github.com/ruby/net-http/commit/4d31bde125
This commit is contained in:
Hiroshi SHIBATA 2023-03-31 12:47:48 +09:00 committed by git
parent eedcd696a5
commit bc0a7a641b

View File

@ -195,7 +195,7 @@ module Net::HTTPHeader
raise ArgumentError, "too long (#{key.bytesize} bytes) header: #{key[0, 30].inspect}..."
end
if value.to_s.bytesize > MAX_FIELD_LENGTH
raise ArgumentError, "header #{key} has too long field vallue: #{value.bytesize}"
raise ArgumentError, "header #{key} has too long field value: #{value.bytesize}"
end
if value.count("\r\n") > 0
raise ArgumentError, "header #{key} has field value #{value.inspect}, this cannot include CR/LF"