Fix previous commit
This commit is contained in:
parent
153bdddfc2
commit
1f4d455848
@ -21,10 +21,10 @@ module Net::HTTPHeader
|
|||||||
warn "net/http: nil HTTP header: #{key}", uplevel: 3 if $VERBOSE
|
warn "net/http: nil HTTP header: #{key}", uplevel: 3 if $VERBOSE
|
||||||
else
|
else
|
||||||
value = value.strip # raise error for invalid byte sequences
|
value = value.strip # raise error for invalid byte sequences
|
||||||
if key.bytesize > MAX_KEY_LENGTH
|
if key.to_s.bytesize > MAX_KEY_LENGTH
|
||||||
raise ArgumentError, "too long (#{key.bytesize} bytes) header: #{key[0, 30].inspect}..."
|
raise ArgumentError, "too long (#{key.bytesize} bytes) header: #{key[0, 30].inspect}..."
|
||||||
end
|
end
|
||||||
if value.bytesize > MAX_FIELD_LENGTH
|
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 vallue: #{value.bytesize}"
|
||||||
end
|
end
|
||||||
if value.count("\r\n") > 0
|
if value.count("\r\n") > 0
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
|
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
|
||||||
#define RUBY_VERSION_TEENY 8
|
#define RUBY_VERSION_TEENY 8
|
||||||
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
|
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
|
||||||
#define RUBY_PATCHLEVEL 224
|
#define RUBY_PATCHLEVEL 225
|
||||||
|
|
||||||
#define RUBY_RELEASE_YEAR 2023
|
#define RUBY_RELEASE_YEAR 2023
|
||||||
#define RUBY_RELEASE_MONTH 3
|
#define RUBY_RELEASE_MONTH 3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user