mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/gserver.rb: remove redundant use of to_s in interpolation.
* lib/logger.rb: ditto. * lib/optparse.rb: ditto. * lib/rbconfig/obsolete.rb: ditto. * lib/resolv.rb: ditto. * lib/webrick/httpresponse.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4c58cdc9a1
commit
4f7449beba
7 changed files with 24 additions and 15 deletions
|
@ -321,7 +321,7 @@ module WEBrick
|
|||
# res.set_redirect WEBrick::HTTPStatus::TemporaryRedirect
|
||||
|
||||
def set_redirect(status, url)
|
||||
@body = "<HTML><A HREF=\"#{url.to_s}\">#{url.to_s}</A>.</HTML>\n"
|
||||
@body = "<HTML><A HREF=\"#{url}\">#{url}</A>.</HTML>\n"
|
||||
@header['location'] = url.to_s
|
||||
raise status
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue