ruby/lib/webrick/httpservlet
mame 7a635a7d12 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
2018-11-26 05:29:45 +00:00
..
abstract.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
cgi_runner.rb webrick/httpservelet/cgi_runner: avoid IO#reopen on pathname 2017-12-22 05:59:11 +00:00
cgihandler.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
erbhandler.rb lib/*: Prefer require_relative over require, remove explicit extension 2018-11-02 17:52:43 +00:00
filehandler.rb lib/webrick: explicitly convert header values to a string 2018-11-26 05:29:45 +00:00
prochandler.rb lib/*: Prefer require_relative over require, remove explicit extension 2018-11-02 17:52:43 +00:00