about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-04-27 11:39:06 -0700
committerEric Wong <normalperson@yhbt.net>2010-04-27 11:39:06 -0700
commite32c35bac78a7e7d8d711d360c143c9ebc64eed2 (patch)
treef66a5e745afe5b32bf218bc0972bcaa12fb657bb
parent8bcf07ce90a9813e3859dce97b4a3a07b43c9cea (diff)
downloadkcar-e32c35bac78a7e7d8d711d360c143c9ebc64eed2.tar.gz
-rw-r--r--lib/kcar/parser.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kcar/parser.rb b/lib/kcar/parser.rb
index dd094e6..dbac7d0 100644
--- a/lib/kcar/parser.rb
+++ b/lib/kcar/parser.rb
@@ -16,8 +16,8 @@ class Parser
       # after the "Trailer" header is inserted in the array
       hdr.each do |key, value|
         if key =~ %r{\ATrailer\z}i
-          value.split(/\s*,+\s*/).each do |key|
-            t[key] = true
+          value.split(/\s*,+\s*/).each do |k|
+            t[k] = true
           end
         elsif false == t.empty? && key =~ /\A(#{t.keys.join('|')})\z/i
           k = $1