Skip to content

Commit e03ea9c

Browse files
committed
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
1 parent 01c051f commit e03ea9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cgi/core.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def nph? #:nodoc:
267267
def _header_for_modruby(buf) #:nodoc:
268268
request = Apache::request
269269
buf.scan(/([^:]+): (.+)#{EOL}/o) do |name, value|
270-
$stderr.puts sprintf("name:%s value:%s\n", name, value) if $DEBUG
270+
$stderr.printf("name:%s value:%s\n", name, value) if $DEBUG
271271
case name
272272
when 'Set-Cookie'
273273
request.headers_out.add(name, value)

0 commit comments

Comments
 (0)