Skip to content

Commit

Permalink
[ruby/net-http] typofix
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt authored and matzbot committed Mar 31, 2023
1 parent eedcd69 commit bc0a7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/net/http/header.rb
Expand Up @@ -195,7 +195,7 @@ def initialize_http_header(initheader) #:nodoc:
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"
Expand Down

0 comments on commit bc0a7a6

Please sign in to comment.