mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use printf instead of puts and sprintf
[ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
01c051f195
commit
e03ea9c596
1 changed files with 1 additions and 1 deletions
|
@ -267,7 +267,7 @@ class CGI
|
|||
def _header_for_modruby(buf) #:nodoc:
|
||||
request = Apache::request
|
||||
buf.scan(/([^:]+): (.+)#{EOL}/o) do |name, value|
|
||||
$stderr.puts sprintf("name:%s value:%s\n", name, value) if $DEBUG
|
||||
$stderr.printf("name:%s value:%s\n", name, value) if $DEBUG
|
||||
case name
|
||||
when 'Set-Cookie'
|
||||
request.headers_out.add(name, value)
|
||||
|
|
Loading…
Reference in a new issue