Permalink
Browse files

make tests pass on 1.8 again

  • Loading branch information...
1 parent 4425e37 commit 120225c2f597d587cec618ef613de0d1e7b0bedc @rkh rkh committed Sep 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack/request.rb
View
@@ -241,7 +241,7 @@ def cookies
# the Cookie header such that those with more specific Path attributes
# precede those with less specific. Ordering with respect to other
# attributes (e.g., Domain) is unspecified.
- Utils.parse_query(string, ';,').each { |k,v| hash[k] = Array(v).first }
+ Utils.parse_query(string, ';,').each { |k,v| hash[k] = Array === v ? v.first : v }
@env["rack.request.cookie_string"] = string
hash
rescue => error

0 comments on commit 120225c

Please sign in to comment.