1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/webrick
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
..
httpauth lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
httpservlet lib/webrick: explicitly convert header values to a string 2018-11-26 05:29:45 +00:00
.document
accesslog.rb
cgi.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
compat.rb
config.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
cookie.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
htmlutils.rb
httpauth.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
httpproxy.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
httprequest.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
httpresponse.rb lib/webrick: explicitly convert header values to a string 2018-11-26 05:29:45 +00:00
https.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
httpserver.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
httpservlet.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
httpstatus.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
httputils.rb webrick/httputils: note Kernel#open behavior 2017-12-22 01:08:05 +00:00
httpversion.rb
log.rb webrick: WEBrick::Log requires path arg when given string 2017-12-22 01:07:55 +00:00
server.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
ssl.rb
utils.rb Add uplevel keyword to Kernel#warn and use it 2017-12-12 11:56:25 +00:00
version.rb webrick 1.4.2 2017-12-24 08:38:43 +00:00
webrick.gemspec default gems: add missing comment in gemspec 2018-10-12 19:58:11 +00:00