diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-08 09:41:24 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-08 09:41:24 +0000 |
| commit | be193f26c1e91a670cb62baf31a498ba0f24c505 (patch) | |
| tree | ca9b63d5311f04114dbf248265560744cbe9b415 /lib/webrick/httpservlet/abstract.rb | |
| parent | b5542ca8b2efe909fd6ff9f72050e5e4daefbe4c (diff) | |
| download | ruby-be193f26c1e91a670cb62baf31a498ba0f24c505.tar.gz ruby-be193f26c1e91a670cb62baf31a498ba0f24c505.tar.xz ruby-be193f26c1e91a670cb62baf31a498ba0f24c505.zip | |
* lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#do_CONNECT):
use #bytesize instead of #size. a patch submitted from
raspberry lemon in [ruby-core:18571].
* lib/webrick/httpauth/digestauth.rb, lib/webrick/httpproxy.rb,
lib/webrick/httprequest.rb, lib/webrick/httpservlet/cgi_runner.rb,
lib/webrick/httpservlet/abstract.rb, lib/webrick/httpresponse.rb,
lib/webrick/httpservlet/cgihandler.rb, lib/webrick/utils.rb: ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick/httpservlet/abstract.rb')
| -rw-r--r-- | lib/webrick/httpservlet/abstract.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/webrick/httpservlet/abstract.rb b/lib/webrick/httpservlet/abstract.rb index 5375c4622..2a0a4049f 100644 --- a/lib/webrick/httpservlet/abstract.rb +++ b/lib/webrick/httpservlet/abstract.rb @@ -59,7 +59,7 @@ module WEBrick def redirect_to_directory_uri(req, res) if req.path[-1] != ?/ location = WEBrick::HTTPUtils.escape_path(req.path + "/") - if req.query_string && req.query_string.size > 0 + if req.query_string && req.query_string.bytesize > 0 location << "?" << req.query_string end res.set_redirect(HTTPStatus::MovedPermanently, location) |
