diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-12 15:01:04 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-12 15:01:04 +0000 |
commit | e03ea9c5963ffeb97b5d4a2d365dec69f61e8f91 (patch) | |
tree | fb71b3633efeb5a8d4de443dbf65ba3ef4eb1a7a /lib/cgi/core.rb | |
parent | 01c051f195e464871b72f8460d37084df8af8724 (diff) | |
download | ruby-e03ea9c5963ffeb97b5d4a2d365dec69f61e8f91.tar.gz |
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
Diffstat (limited to 'lib/cgi/core.rb')
-rw-r--r-- | lib/cgi/core.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cgi/core.rb b/lib/cgi/core.rb index d510b80628..73daae3e17 100644 --- a/lib/cgi/core.rb +++ b/lib/cgi/core.rb @@ -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) |