diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-26 05:29:45 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-26 05:29:45 +0000 |
commit | 7a635a7d12fc127da76bc4eca78414602db6350c (patch) | |
tree | 284dfa6e0dd0e6e9d0c0d9f97e2d41ed54727de0 /lib/webrick/httpservlet/abstract.rb | |
parent | b1ad07bd1aefb14fa0a2c6ae38c0a212328f3121 (diff) |
lib/webrick: explicitly convert header values to a string
The values of @header are expected to be all strings;
WEBrick::HTTPResponse::[]=(key, val) explicitly converts the second
argument to a string and assigns it to @header hash.
However, there were some points in WEBrick internal code that assigns
non-String to @header. This change fixes the issues.
The values are checked by `header_value =~ /\r\n/` in check_header.
The type confusion caused conflict with removal of `Object#=~`
[Feature #15231].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick/httpservlet/abstract.rb')
0 files changed, 0 insertions, 0 deletions