summaryrefslogtreecommitdiff
path: root/lib/cgi
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-29 00:42:32 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-29 00:42:32 +0000
commit0cfc4866d4eb7f16e650ab3262515c02fc6725ab (patch)
tree1d237b223e138b03374e5a169c00b56cccfa7e17 /lib/cgi
parent1950c1ce6c43449017abf9e3d3310ee4892d9a95 (diff)
code cleanup by @vipulnsward [GH fixes #267]
* lib/cgi/core.rb: change each to each_value * ext/bigdecimal/lib/bigdecimal/{jacobian,math}.rb: remove unused variables from bigdecimal lib git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi')
-rw-r--r--lib/cgi/core.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cgi/core.rb b/lib/cgi/core.rb
index 27137a2032..323a6a5361 100644
--- a/lib/cgi/core.rb
+++ b/lib/cgi/core.rb
@@ -238,7 +238,7 @@ class CGI
arr.each {|c| buf << "Set-Cookie: #{c}#{EOL}" }
when Hash
hash = cookie
- hash.each {|name, c| buf << "Set-Cookie: #{c}#{EOL}" }
+ hash.each_value {|c| buf << "Set-Cookie: #{c}#{EOL}" }
end
end
if @output_cookies